Opened 13 years ago
Closed 13 years ago
#27133 closed enhancement (fixed)
Redundant type casting in wp_get_object_terms
| Reported by: | OriginalEXE | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Taxonomy | Version: | 3.9 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In wp_get_object_terms function (taxonomy.php), there is a redundant type casting to array after is_array() check has already been performed on that variable.
Attachments (1)
Change History (6)
#1
@
13 years ago
- Keywords has-patch added
- Severity normal → minor
I have attached a patch removing the unnecessary type casting. It is, however, worth considering replacing all is_array() checks with direct type casting, which appears to be faster in php.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Proposed improvement