Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#21117 closed defect (bug)

Custom post called "content" triggers a PHP notice — at Initial Version

Reported by: bpierre Owned by:
Milestone: 3.5 Priority: normal
Severity: minor Version: 3.4
Component: Administration Keywords: has-patch
Focuses: Cc:


If a custom post is called "content", the following error appears on all the admin pages:

Notice: Undefined index: meta in /path/to/wp-includes/class-wp-admin-bar.php on line 108

"content" is not in the taxonomy reserved terms list: http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms

PS: according to the ticket:19868, the taxonomy reserved terms are used for everything?

Change History (1)

6 years ago

Replaces wp_parse_args() with a direct assignment to avoid PHP notice

Note: See TracTickets for help on using tickets.