[wp-trac] [WordPress Trac] #19069: Admin menu generation doesn't check whether default post types have 'show_ui' as true

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 05:00:28 UTC 2011


#19069: Admin menu generation doesn't check whether default post types have
'show_ui' as true
----------------------------+------------------------------
 Reporter:  kawauso         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 Technically speaking, there's no proper way to set show_ui to false for
 pages or posts. I'm not saying there shouldn't be, but there isn't a way
 to modify a post type definition. remove_menu_page() seems like a good
 alternative for now.

 Generally speaking, post type support refers to UI only, but I'm not sure
 if comments should depend on the implicit situation where no post types
 are linked to them. Could comments be used for something else other than a
 direct post link? (Think orphaned attachments or terms attached to links
 or users — both odd situations we need to account for.)

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


More information about the wp-trac mailing list