[wp-trac] [WordPress Trac] #21117: CPT called "content" triggers a PHP notice (was: Custom post called "content" triggers a PHP notice)

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 30 07:43:46 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       |
----------------------------+------------------------------
Description changed by scribu:

Old description:

> 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?

New description:

 If a custom post type 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?

--

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


More information about the wp-trac mailing list