Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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