WordPress.org

Ready to get started?Download WordPress

Forums

[plugin:Pages Tree View] Undefined property: stdClass::$post_type (1 post)

  1. Bortch
    Member
    Posted 4 years ago #

    Hello,

    I had this notification when using Pages Tree View
    with define('WP_DEBUG', true);

    Undefined property: stdClass::$post_type in <b>/www/site/wp-admin/includes/template.php</b> on line <b>603</b><br />

    so I've change in 'wp-admin/includes/template.php' on line 603:

    if ( empty($screen))
    {$post_type = 'post';}
    else
    {
    if(isset($screen->post_type))
    {$post_type = $screen->post_type;}
    else
    {$post_type = 'post';}
    }

    no more notification...

    Seems to work till now.

Topic Closed

This topic has been closed to new replies.

About this Topic