[wp-trac] [WordPress Trac] #23668: Check for empty slug input in register_taxonomy

WordPress Trac noreply at wordpress.org
Tue Apr 9 10:11:35 UTC 2013


#23668: Check for empty slug input in register_taxonomy
--------------------------------------------------+--------------------
 Reporter:  cliffseal                             |       Owner:
     Type:  defect (bug)                          |      Status:  new
 Priority:  normal                                |   Milestone:  3.6
Component:  Taxonomy                              |     Version:  3.5.1
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch dev-feedback needs-testing  |
--------------------------------------------------+--------------------

Comment (by cliffseal):

 Replying to [comment:5 ericlewis]:
 > wp_parse_args favors the values in the first argument - so in
 [attachment:emptytax.diff] the sanitize_title_with_dashes would have no
 affect, since the array value of the first argument would be favored,
 which would be the (potentially) unsanitized $taxonomy string.

 Interesting. Thanks, ericlewis!

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


More information about the wp-trac mailing list