WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#21747 closed defect (bug) (duplicate)

Hierarchical taxonomy names starting with 'even' cause JS conflicts

Reported by: netweblogic Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.1
Component: Administration Keywords:
Focuses: Cc:

Description

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.

Change History (1)

#1 @SergeyBiryukov
9 years ago

  • Component changed from General to Administration
  • Keywords 2nd-opinion removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.