Update task.php
attribution
This commit is contained in:
parent
242795a2b6
commit
3d85de134e
1 changed files with 2 additions and 0 deletions
|
@ -2094,6 +2094,8 @@ class MCI_Footnotes_Task {
|
||||||
// Determine tooltip content.
|
// Determine tooltip content.
|
||||||
if ( MCI_Footnotes::$a_bool_tooltips_enabled ) {
|
if ( MCI_Footnotes::$a_bool_tooltips_enabled ) {
|
||||||
$l_str_tooltip_content = $l_bool_has_tooltip_text ? $l_str_tooltip_text : $l_str_excerpt_text;
|
$l_str_tooltip_content = $l_bool_has_tooltip_text ? $l_str_tooltip_text : $l_str_excerpt_text;
|
||||||
|
// @reporter @pewgeuges
|
||||||
|
// @link https://github.com/markcheret/footnotes/issues/103
|
||||||
$l_arr_paragraph_splitters = array( '#(</p *>|<p[^>]*>)#', '#(</div *>|<div[^>]*>)#' );
|
$l_arr_paragraph_splitters = array( '#(</p *>|<p[^>]*>)#', '#(</div *>|<div[^>]*>)#' );
|
||||||
$l_str_tooltip_content = preg_replace( $l_arr_paragraph_splitters, '<br />', $l_str_tooltip_content );
|
$l_str_tooltip_content = preg_replace( $l_arr_paragraph_splitters, '<br />', $l_str_tooltip_content );
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue