[wp-trac] [WordPress Trac] #21117: CPT called "content" triggers a PHP notice
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 10 14:11:02 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):
We can also push new-content into the $back_compat_parents array in
add_node(). Potentially, we can also look further up the stack and confirm
that new-content's parent isn't already add-new, in case someone has a
"content" post type and then adds a child node to it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21117#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list