[wp-trac] [WordPress Trac] #21106: Unable to add Taxonomies to custom post type taxonomies in 3.4.1
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 29 06:28:58 UTC 2012
#21106: Unable to add Taxonomies to custom post type taxonomies in 3.4.1
----------------------------+--------------------
Reporter: lightmensendme | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4.2
Component: Taxonomy | Version: 3.4
Severity: major | Resolution:
Keywords: |
----------------------------+--------------------
Comment (by markjaquith):
"event-city" starts with the word "even". WordPress uses some colon-
separated class names. like: {{{add:event-citychecklist}}}. See the
{{{:even}}} in there? The issue manifests if you replace "event-city" with
"oddsfish".
On line 81 of wp-includes/js/wp-lists.dev.js has the following line:
{{{
if ( !e.is('[class^="add:' + list.id + ':"]') )
}}}
This test is failing when it shouldn't be.
Here's my theory: there was a bug introduced in jQuery 1.7.2 regarding
attribute selector quoting. It's seeing {{{:even}}} or {{{:odd}}} in a
quoted class selector and it's parsing that as the {{{:even}}}/{{{:odd}}}
pseudo-classes that jQuery supports.
What's really frustrating is that I can't reproduce it more simply. I've
been trying to make a simple proof of concept on jsfiddle.net
http://jsfiddle.net/g4CCw/
Maybe someone else will have better luck.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21106#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list