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

WordPress Trac noreply at wordpress.org
Sat May 9 12:24:45 UTC 2020


#50019: remove_meta_box triggers warning in PHP 7.4
----------------------------+-----------------------------
 Reporter:  coolmann        |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.5
Component:  Administration  |     Version:  5.4
 Severity:  major           |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  ui
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47777" 47777]:
 {{{
 #!CommitTicketReference repository="" revision="47777"
 Administration: Avoid a PHP 7.4 notice in `add_meta_box()` when attempting
 to re-add a previously removed box.

 The logic for skipping previously removed meta boxes with the `core`
 priority should also apply to the `sorted` priority that is used when the
 boxes were manually reordered.

 Add a unit test.

 Props coolmann, franzarmas, SergeyBiryukov.
 Fixes #50019.
 }}}

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


More information about the wp-trac mailing list