[wp-trac] [WordPress Trac] #21117: CPT called "content" triggers a PHP notice

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 10 14:32:25 UTC 2012


#21117: CPT called "content" triggers a PHP notice
----------------------------+------------------
 Reporter:  bpierre         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Administration  |     Version:  3.4
 Severity:  minor           |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by nacin):

 None of this works very well. If you end up with both a 'content' post
 type and manually added child nodes of the current 'new-content' menu,
 either the child nodes don't get mapped, or you can't assign child nodes
 to the 'content' post type's node. Neither of these are ideal situations.

 I suggest instead that we just insert a condition to rename the ID for a
 'content' post type to avoid the conflict at that level.

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


More information about the wp-trac mailing list