diff --git a/inc/class.client.autolinks.php b/inc/class.client.autolinks.php index 02ee1aad..58ab9323 100644 --- a/inc/class.client.autolinks.php +++ b/inc/class.client.autolinks.php @@ -202,7 +202,7 @@ private static function _replace_by_links_dom(&$content, $search = '', $replace $xpath = new DOMXPath($dom); foreach ($xpath->query('//text()[not(ancestor::a)]') as $node) { - $substitute = '$search"; + $substitute = '$search"; if ( $case == 'i' ) { $replaced = str_ireplace($search, $substitute, $node->wholeText); @@ -236,7 +236,7 @@ private static function _replace_by_links_regexp(&$content, $search = '', $repla $filtered = ''; // will filter text token by token $match = '/(\PL|\A)(' . preg_quote($search, "/") . ')(\PL|\Z)/u' . $case; - $substitute = '$1$2$3"; + $substitute = '$1$2$3"; //$match = "/\b" . preg_quote($search, "/") . "\b/".$case; //$substitute = '$0"; diff --git a/inc/helper.options.admin.php b/inc/helper.options.admin.php index 36c6d580..2bdc71d7 100644 --- a/inc/helper.options.admin.php +++ b/inc/helper.options.admin.php @@ -72,7 +72,7 @@ ), array('auto_link_dom', __('Try new engine replacement ?', 'simpletags'), 'checkbox', '1', __('An engine replacement alternative uses DOMDocument PHP class and theoretically offers better performance. If your server does not offer the functionality, the plugin will use the usual engine.', 'simpletags')), - + array('auto_link_title', __('Text to display into title attribute for links:', 'simpletags'), 'text', 'regular-text'), ), 'tagcloud' => array( array('text_helper', 'text_helper', 'helper', '', __('Which difference between ‘Order tags selection’ and ‘Order tags display’ ?
', 'simpletags') diff --git a/inc/helper.options.default.php b/inc/helper.options.default.php index ef5c1b99..c0b0db09 100644 --- a/inc/helper.options.default.php +++ b/inc/helper.options.default.php @@ -21,6 +21,7 @@ 'auto_link_priority' => 12, 'auto_link_views' => 'singular', 'auto_link_dom' => 0, + 'auto_link_title' => __('Posts tagged with %s', 'simpletags'), // Administration 'order_click_tags' => 'name-asc',