[wp-trac] [WordPress Trac] #49153: Undefined Variable Warning

WordPress Trac noreply at wordpress.org
Wed Jan 8 18:25:24 UTC 2020


#49153: Undefined Variable  Warning
--------------------------+-----------------------------
 Reporter:  tweidman      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Notice: Undefined property: WP_Post::$filter in wp-includes/class-wp-
 post.php on line 342


 The fix is simple change the if statement to:

 if ( !empty( $this->filter ) ) {

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49153>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list