Opened 19 years ago
Closed 19 years ago
#5417 closed defect (bug) (fixed)
get_object_taxonomies returns all taxonomies on object_type 0
| Reported by: | nbachiyski | Owned by: | westi |
|---|---|---|---|
| Priority: | lowest | Milestone: | 2.5 |
| Component: | General | Version: | 2.3.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Oh, and I forgot to mention: actually Alex Shiels found that through a unit test.