If I add the C++ tag, when updating the post it gets converted to C#. If I add the ++ tag, there's no conversion.

Encoding for pages and feeds is UTF-8. Wordpress version 3.0.1

link|improve this question
feedback

1 Answer

up vote 4 down vote accepted

I can duplicate this behavior. Probably a bug. Only alphanumeric characters and dashes are allowed in tag slugs, so my slugs for C++ and C# were created as "c" and "c-2," respectively. Adding these tags to a new post by name rather than slug lumped them all into C#. (Or was it C++? Either way, they evaluated to the same.)

Manually updating the slugs to "cpp" and "csharp" worked around the bug in my install. Have you customized your tag slugs, or are they "c" and "c-2?"

Update: taxonomy.php does check that the slug matches before checking the full tag name, and they both evaluate to the same slug ("c"), hence the incorrect match.

link|improve this answer
Updating the slugs works, thanks. – anno Sep 26 '10 at 11:14
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.