[wp-trac] [WordPress Trac] #50019: remove_meta_box triggers warning in PHP 7.4

WordPress Trac noreply at wordpress.org
Mon Apr 27 19:43:53 UTC 2020


#50019: remove_meta_box triggers warning in PHP 7.4
-------------------------------+------------------------------
 Reporter:  coolmann           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  5.4
 Severity:  major              |  Resolution:
 Keywords:  needs-patch        |     Focuses:  ui
-------------------------------+------------------------------

Comment (by coolmann):

 Alternatively, instead of changing line 1078 as suggested above, line 1050
 in template.php could be changed from

 `if ( ! isset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]
 ) ) {`

 to

 `if ( empty( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] )
 ) {`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50019#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list