[wp-trac] [WordPress Trac] #19776: wp_dropdown_categories (using with taxonomy) defaults if no terms
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 8 19:06:34 UTC 2012
#19776: wp_dropdown_categories (using with taxonomy) defaults if no terms
----------------------------+------------------------------
Reporter: helgatheviking | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Changes (by DrewAPicture):
* cc: xoodrew@… (added)
Comment:
I agree with helgatheviking in presuming that when using
`wp_dropdown_categories` with categories, it would likely never return
nothing because you'll always have the default category in place.
Therefore, we shouldn't assume the taxonomy is `categories`. Attached
patch changes `'No Categories'` to `'No Terms'`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19776#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list