[wp-trac] [WordPress Trac] #45206: Logic error in do_meta_boxes() for Gutenberg support
WordPress Trac
noreply at wordpress.org
Mon Oct 29 03:15:14 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 | Focuses:
--------------------------------+---------------------
Changes (by pento):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"43838" 43838]:
{{{
#!CommitTicketReference repository="" revision="43838"
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.
Fixes #45206.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45206#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list