[Plugin: WordPress SEO by Yoast] 1.2.8.7 gives notice when searching
-
WordPress version: 3.4.2
WordPress SEO version: 1.2.8.7I did this: I installed the plugin π
I expected the plugin to do this: Optimize SEO and stuff..
Instead it did this:
If a search doesn’t give posts back, i get an Notice from php saying:
Notice: Trying to get property of non-object in /var/www/wptest.local/httpdocs/wp-includes/post-template.php on line 30
I traced it back to the wpseo-functions.php file and changed line 14 from this:
if ( $postid === 0 ) {
to this:
if ( $postid === 0 || $postid === '' ) {
Which made the notice disappear.
- The topic ‘[Plugin: WordPress SEO by Yoast] 1.2.8.7 gives notice when searching’ is closed to new replies.