Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: [SEO Smart Links] PHP 7

    Sure, Cannot fixed at all. My code still problem on <H> tag.

    Anyway put this code “AddType application/x-httpd-php-old .php” to .htaccess file for down grade php version.

    Forum: Plugins
    In reply to: [SEO Smart Links] PHP 7

    Hi, I fixed this problem on my sites.
    Because preg_replace deprecated since php 5.4. We can use preg_replace_callback instead of.

    Change this code in seo-auto-link.php line 76 and 253

    $text = preg_replace('%(<h.*?>)(.*?)(</h.*?>)%sie', "'\\1'.SEOAutoInSpecChar('\\2').'\\3'", $text);

    to

    $text =	preg_replace_callback( '%(<h.*?>)(.*?)(</h.*?>)%si',
    function ($m) {
    	return stripslashes($this->$m[1]) . SEOAutoInSpecChar( stripslashes($this->$m[2]) ) .stripslashes($this->$m[2]);
    },$text);

    But I’m not sure this working 100%. Wating update from plugins.

Viewing 2 replies - 1 through 2 (of 2 total)