[wp-trac] [WordPress Trac] #27133: Redundant type casting in wp_get_object_terms
WordPress Trac
noreply at wordpress.org
Sat Feb 15 16:50:28 UTC 2014
#27133: Redundant type casting in wp_get_object_terms
-------------------------+------------------------------
Reporter: OriginalEXE | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Changes (by OriginalEXE):
* keywords: => has-patch
* severity: normal => minor
Comment:
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27133#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list