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

WordPress Trac noreply at wordpress.org
Thu Sep 12 01:24:32 UTC 2013

#23668: Check for empty slug input in register_taxonomy
 Reporter:  cliffseal     |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.7
Component:  Taxonomy      |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


 Technically, `$args['rewrite']` should only be an array or a boolean
 value, but a string indeed would have worked too, and I guess we shouldn't
 break that.

 [attachment:23668.4.patch] restores `wp_parse_args()` and moves it above
 the slug assignment to make sure `$args['rewrite']` is an array before
 treating it as such.

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

More information about the wp-trac mailing list