[wp-trac] [WordPress Trac] #34449: Remove CPT if exists menu item

WordPress Trac noreply at wordpress.org
Wed Dec 9 07:22:49 UTC 2015


#34449: Remove CPT if exists menu item
------------------------------+------------------------------
 Reporter:  sebastian.pisula  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Menus             |     Version:
 Severity:  major             |  Resolution:
 Keywords:  has-screenshots   |     Focuses:
------------------------------+------------------------------
Changes (by sebastian.pisula):

 * keywords:   => has-screenshots
 * severity:  normal => major


Comment:

 Error still exists. I have plugin where I register post type. In menu add
 item "Post Type Archive". When I  turn off my plugin in menu manager I
 have notice:

 Notice: Trying to get property of non-object in /wp-admin/includes/class-
 walker-nav-menu-edit.php on line 83

 Notice: Trying to get property of non-object in /wp-admin/includes/class-
 walker-nav-menu-edit.php on line 83

 In attachment is screen of bug. My patch fixes this.

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


More information about the wp-trac mailing list