Problem with plugin SEO by Yoast
-
Hi!
Thanks for great plugin!
But after installing SEO Yoast plugin appeared this error – “Warning: Creating default object from empty value in /html/wp-content/plugins/geodirectory/geodirectory_hooks_actions.php on line 1158”I saw in code this part
####### FIX FOR YOAST SEO START ########
$separator_options = array(
‘sc-dash’ => ‘-‘,
‘sc-ndash’ => ‘–’,
‘sc-mdash’ => ‘—’,
‘sc-middot’ => ‘·’,
‘sc-bull’ => ‘?’,
‘sc-star’ => ‘*’,
‘sc-smstar’ => ‘?’,
‘sc-pipe’ => ‘|’,
‘sc-tilde’ => ‘~’,
‘sc-laquo’ => ‘?’,
‘sc-raquo’ => ‘?’,
‘sc-lt’ => ‘<‘,
‘sc-gt’ => ‘>’,
);$wpseo = get_option(‘wpseo_titles’);
if(is_array($wpseo) && is_plugin_active( ‘wordpress-seo/wp-seo.php’ )){$sep = $separator_options[$wpseo[‘separator’]];
$title_parts = explode(‘ ‘.$sep.’ ‘,$title,2);
$title = $title_parts[0];
$wpseo_edit = true;
}
####### FIX FOR YOAST SEO END ########But I think that is not working (((
Maybe after some new version of plugin need to make a new patсh.
- The topic ‘Problem with plugin SEO by Yoast’ is closed to new replies.