Support » Plugin: User Role Editor by Members – Best User, Role and Capability Management Plugin for WordPress » PHP Notice: Trying to get property ‘post_parent’ of non-object in…

  • Saw this PHP notice, not sure if it’s as easy as checking the result of get_post( $post_id ) first.

    line 95: $parent_id = get_post( $post_id )->post_parent;

    PHP Notice: Trying to get property ‘post_parent’ of non-object in /wordpress/wp-content/plugins/members/inc/template.php on line 95

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice: Trying to get property ‘post_parent’ of non-object in…’ is closed to new replies.