Opened 18 years ago
Closed 18 years ago
#5417 closed defect (bug) (fixed)
get_object_taxonomies returns all taxonomies on object_type 0
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.5 | Priority: | lowest |
| Severity: | minor | Version: | 2.3.1 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Oh, and I forgot to mention: actually Alex Shiels found that through a unit test.