[wp-trac] [WordPress Trac] #62461: If a post has 2 term tags children's and kid+ and from all terms we have children's, kid and kid+, when the post/tags is saved, kid+ is saved as kid

WordPress Trac noreply at wordpress.org
Mon Nov 18 16:13:51 UTC 2024


#62461: If a post has 2 term tags children's and kid+ and from all terms we have
children's, kid and kid+, when the post/tags is saved, kid+ is saved as kid
-------------------------------+-------------------------------------------
 Reporter:  frankakot1         |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  6.6
 Severity:  normal             |   Keywords:  needs-patch changes-requested
  Focuses:                     |
-------------------------------+-------------------------------------------
 There is an array compare for tags in wp-includes/post.php on line 4989
 that will fail comparing the tags because children's will be escape as
 children\'s and as such the array comparison will be false, thus attaching
 tags to the post will be qureried by tag name on not buy slug, thus kid+
 will be closer to kid, where the slug for kid+ is kid-plus while that for
 kid is kid.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62461>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list