• Resolved Michael Ecklund

    (@michaelecklund)


    WordPress: 3.4.2
    WordPress SEO: 1.2.8.6

    Notice: Undefined property: WP_Query::$post in /wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 659 Notice: Trying to get property of non-object in /wordpress-seo/frontend/class-frontend.php on line 659

    File: ./front-end/class-frontend.php
    Line 659: $numpages = substr_count( $wp_query->post->post_content, '<!--nextpage-->' ) + 1;
    Proposed Fix:

    if(isset($wp_query->post->post_content)){
    	$numpages = substr_count( $wp_query->post->post_content, '<!--nextpage-->' ) + 1;
    } else{
    	$numpages = 0;
    }

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] WordPress SEO 1.2.8.6 Missed a notice! Here's a patch!’ is closed to new replies.