WordPress.org

Support

Support » How-To and Troubleshooting » [plugin:Pages Tree View] Undefined property: stdClass::$post_type

[plugin:Pages Tree View] Undefined property: stdClass::$post_type

  • 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.

  • The topic ‘[plugin:Pages Tree View] Undefined property: stdClass::$post_type’ is closed to new replies.