[wp-trac] [WordPress Trac] #36227: get_categories does not return a valid wp_error
WordPress Trac
noreply at wordpress.org
Mon Mar 14 08:59:20 UTC 2016
#36227: get_categories does not return a valid wp_error
--------------------------+------------------
Reporter: virgodesign | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------
Comment (by virgodesign):
I agree with @boonebgorges. This ensure consistency and compatibility.
A user can always check if the returned array is empty before attempt to
access its content.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36227#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list