Update task.php

This commit is contained in:
Mark Cheret 2021-04-18 00:19:23 +02:00 committed by GitHub
parent 3d85de134e
commit dc1ec81ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2094,8 +2094,11 @@ 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 * @reporter @pewgeuges
* @link https://github.com/markcheret/footnotes/issues/103
* @since 2.7.1
*/
$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 {