[wp-trac] [WordPress Trac] #45206: Logic error in do_meta_boxes() for Gutenberg support

WordPress Trac noreply at wordpress.org
Fri Dec 14 09:38:13 UTC 2018


#45206: Logic error in do_meta_boxes() for Gutenberg support
---------------------------------+---------------------
 Reporter:  johnjamesjacoby      |       Owner:  pento
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  5.0
Component:  Options, Meta APIs   |     Version:  5.0
 Severity:  normal               |  Resolution:  fixed
 Keywords:  has-patch fixed-5.0  |     Focuses:
---------------------------------+---------------------
Changes (by atimmer):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44174" 44174]:
 {{{
 #!CommitTicketReference repository="" revision="44174"
 Meta boxes: Don't assume that callback args are an array.

 While the documentation for add_meta_box() specifices that $callback_args
 should be an array, this has never been enforced, and we have workarounds
 in place for when it's passed as something other than an array.

 Rather than break sites that are passing unexpected data, we can quietly
 just allow for it, instead.

 Props johnjamesjacoby, birgire, pento.
 Merges [43838] to trunk.
 Fixes #45206.
 }}}

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


More information about the wp-trac mailing list