#11156 closed defect (bug) (invalid)
Duplicate tag created if tag name contains ampersand
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9 |
Component: | Taxonomy | Keywords: | needs-patch |
Focuses: | Cc: |
Description
This is undoubtedly an edge case, but here's what happened:
- I created a tag with a long name that contained an ampersand. Gave it a shorter slug than the one WP generated.
- Tagged some posts.
- While the server was running slow, the autocomplete never came up, and I tagged another post by cutting and pasting the tag name from another screen.
That resulted in a new tag being created with a longer WP-generated slug, instead of the post getting tagged with my older existing tag.
This happened a few times (the server in question is REALLY slow), and I finally realized that the only tags that were incorrectly duplicated were the ones with ampersands.
Change History (5)
#1
@
15 years ago
- Keywords needs-patch added; tags autocomplete ajax removed
- Milestone changed from Unassigned to 3.1
#2
@
15 years ago
There is some issues with the Suggest and & due to & The search doesn't abide the same escaping. See #13992.
Note: See
TracTickets for help on using
tickets.
This might be caused by "Test & Slug" being stored as "Test & Slug" in the terms table.
However, There is another side to this story.
Create a tag as such:
Attempt to create another tag as such:
Result will be a second tag created with 'some-tag' as the slug, as the name is ignored in the comparison, its only checked to see if another term exists matching that slug (be it provided, or automatically generated)
That testing is done from the Manage -> Tags screen, but its most likely also the underlying cause of the Tag additions.