[wp-trac] [WordPress Trac] #16310: get_taxonomy_labels() and _get_custom_object_labels() fail if $object->taxonomy is not array
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 19 20:01:19 UTC 2011
#16310: get_taxonomy_labels() and _get_custom_object_labels() fail if
$object->taxonomy is not array
--------------------------+-----------------------------
Reporter: foofy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
$object->labels is always stdObject on the taxonomy objects created by
WordPress, but the get_taxonomy_labels() and _get_custom_object_labels()
functions expect it to be an array and will fail otherwise.
Casting to array works fine as the functions already convert back to
stdObject when they're finished.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16310>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list