[wp-trac] Re: [WordPress Trac] #6593: Tags with custom slugs get recreated on post edit screen

WordPress Trac wp-trac at lists.automattic.com
Fri May 1 18:30:10 GMT 2009


#6593: Tags with custom slugs get recreated on post edit screen
-------------------------------------------------+--------------------------
 Reporter:  jhodgdon                             |        Owner:  ryan
     Type:  defect (bug)                         |       Status:  new 
 Priority:  normal                               |    Milestone:  2.8 
Component:  Taxonomy                             |      Version:  2.5 
 Severity:  major                                |   Resolution:      
 Keywords:  tag custom slug duplicity has-patch  |  
-------------------------------------------------+--------------------------

Comment(by jhodgdon):

 I'm not sure about that. We'd have to check all callers of the function
 and see whether they already stripped slashes prior to calling this
 function (stripping them again could get rid of legitimate slashes).

 Also, the strip slashes also needs to be done when a new term is created
 from $_POST data, just as it is done on the post title, etc. in the
 wp_insert_post() function prior to saving in the DB (I think that is the
 right function). So it is not just for is_term() to do term matching. Or
 are slashes stripped when terms are created?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6593#comment:52>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list