[wp-trac] [WordPress Trac] #23668: Check for empty slug input in register_taxonomy
WordPress Trac
noreply at wordpress.org
Wed Sep 11 16:49:54 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 |
--------------------------+-----------------------------
Comment (by DrewAPicture):
Seems like [attachment:23668.3.patch] should fix the warning introduced in
[25335], unless I'm missing something.
We should actually check if `$args['rewrite']['slug']` is set and empty
since the `wp_parse_args()` call will only assign `$args['rewrite']` a
value of `true` if unspecified.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23668#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list