[wp-trac] [WordPress Trac] #31750: add_meta_box() ignores calls with invalid $priority parameter

WordPress Trac noreply at wordpress.org
Tue Mar 24 15:50:50 UTC 2015


#31750: add_meta_box() ignores calls with invalid $priority parameter
-------------------------------+-----------------------------
 Reporter:  bobbingwide        |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I incorrectly changed a call to add_meta_box() to adjust the $priority - I
 used a valid value for the $context parameter.

 Actual result:
 The meta box callback was not invoked at all

 Expected result:
 Some form of validation, which would produce one or more of the following
 - Doing it wrong
 - WP_Error returned from the call
 - return( false );

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


More information about the wp-trac mailing list