[wp-trac] [WordPress Trac] #23095: Add Object Page has no Position Parameter

WordPress Trac noreply at wordpress.org
Thu Jan 3 03:28:19 UTC 2013


#23095: Add Object Page has no Position Parameter
----------------------------+----------------------
 Reporter:  chriscct7       |       Owner:
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.5
 Severity:  normal          |  Resolution:  wontfix
 Keywords:                  |
----------------------------+----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:9 chriscct7]:
 > EDD does use register_post_type(); Contact Form 7 is the plugin using
 add_object_page(). The issue is EDD's post registers at the bottom of the
 first bloc, which is also where add_object_page registers as well. The two
 cause menu conflict where EDD's post type menu item disappears.

 I see. But still, I can only reproduce the conflict if I manually add
 `'menu_position' => 26` to the `register_post_type()` call in EDD.
 Otherwise, `$_wp_last_object_menu` is properly incremented: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5/wp-admin/menu.php#L108

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


More information about the wp-trac mailing list