[wp-trac] [WordPress Trac] #22923: add_meta_box() ignores $context='side' if $post_type = 'page' & $id is exactly 'myplugin_sectionid'

WordPress Trac noreply at wordpress.org
Thu Dec 13 19:35:24 UTC 2012


#22923: add_meta_box() ignores $context='side' if $post_type = 'page' & $id is
exactly 'myplugin_sectionid'
-------------------------------+------------------------------
 Reporter:  SavesEnergy        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.5
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by helenyhou):

 * keywords:   => reporter-feedback


Comment:

 Starting with the second snippet (which is missing a comma after 'page')
 puts the metabox in the side as expected. I suspect that this is happening
 because you previously moved the metabox on the screen, which is saved as
 a setting and overrides where the code tells it to go. Can you reproduce
 either on a clean install or with a different user (since the metabox
 position settings are a user preference)? You can also delete the
 preference (`meta-box-order_page` for that user in the usermeta table) if
 you like.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22923#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list