[wp-trac] [WordPress Trac] #5417: get_object_taxonomies returns all
taxonomies on object_type 0
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 4 08:30:10 GMT 2007
#5417: get_object_taxonomies returns all taxonomies on object_type 0
------------------------+---------------------------------------------------
Reporter: nbachiyski | Owner: anonymous
Type: defect | Status: new
Priority: lowest | Milestone: 2.4
Component: General | Version: 2.3.1
Severity: minor | Keywords:
------------------------+---------------------------------------------------
Expected:
Calling {{{get_object_taxonomies(0)}} returns an array of taxonomies with
object_type equal to {{{0}}}.
Actual:
Calling {{{get_object_taxonomies(0)}} returns an array of all taxonomies.
Since for php {{{0 == 'baba'}}} we have to use strict equal to catch
errors like these. Patch attached.
--
Ticket URL: <http://trac.wordpress.org/ticket/5417>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list