[wp-trac] [WordPress Trac] #21117: CPT called "content" triggers a PHP notice
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 30 18:38:11 UTC 2012
#21117: CPT called "content" triggers a PHP notice
----------------------------+------------------------------
Reporter: bpierre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.4
Severity: minor | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Comment (by jeremyfelt):
For historical interest... 'New Content' was the first version of 'Add
New' when the Admin Bar as we know it was being created
[comment:106:ticket:14772]. This appears to be why `new-content` was used
as the menu ID in [changeset:16077]. The name change to 'Add New' was made
in [changeset:16302], but the ID of the menu remained.
The use of `new-content` as an ID appears to only be for the display of
the menu. As the children of 'Add New' are automatically assigned IDs as
`new-{$post_type}`, it makes sense to change the parent ID to something
other than `new-content` to avoid conflict.
This updated patch [attachment:21117.2.diff] addresses both the empty
`wp_parse_args()` argument and changes the ID for the Add New menu item to
`add-new`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21117#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list