[wp-trac] [WordPress Trac] #21747: Hierarchical taxonomy names starting with 'even' cause JS conflicts

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 31 11:00:30 UTC 2012


#21747: Hierarchical taxonomy names starting with 'even' cause JS conflicts
--------------------------+-----------------------------
 Reporter:  netweblogic   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.4.1
 Severity:  normal        |   Keywords:  2nd-opinion
--------------------------+-----------------------------
 Tested by a few independent users and easy to reproduce by pasting this
 in:

 {{{
 add_action('init','messed_up_categories',1);
 function messed_up_categories(){
         register_taxonomy('evenscrewy',array ( 0 => 'post'), array(
                 'hierarchical' => true,
                 'label' => 'Screwy Categories',
                 'show_ui' => true,
                 'query_var' => true,
                 'singular_label' => 'Screwy Category'
         ));
 }
 }}}

 Cause:
 Starting your taxonomy name with 'even' with any following combination of
 text will cause this issue, e.g. 'event-categories', 'events', 'eventcats'
 don't work, yet e.g. 'zeven' does.

 Symptoms:
 Go to your post (or any CPT) the above was added to and try creating a new
 category. When you click the 'add category' button, the button appears in
 the list of taxonomies instead of the new name.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21747>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list