[wp-trac] [WordPress Trac] #29583: The getter in WP_Error may cause an "Undefined property" notice
WordPress Trac
noreply at wordpress.org
Tue Sep 30 12:53:18 UTC 2014
#29583: The getter in WP_Error may cause an "Undefined property" notice
---------------------------+------------------
Reporter: bjornjohansen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.1
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------
Comment (by bjornjohansen):
The same notice will show up in other places as well, due to missing
is_wp_error() checks. Today I got it while using get_terms with
'hide_empty' => false and all the terms in the taxonomy were empty (will
create separate ticket for that).
I suggest we do as Brian is proposing: Fix the getter and move the missing
is_wp_error() checks to separate tickets (even though the cases might
never be discovered as soon as the getter is fixed).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29583#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list