[wp-trac] [WordPress Trac] #30566: Fix "Trying to get property of non-object" notice when calling get_blogaddress_by_id() with an invalid id.
WordPress Trac
noreply at wordpress.org
Mon Jan 12 16:51:25 UTC 2015
#30566: Fix "Trying to get property of non-object" notice when calling
get_blogaddress_by_id() with an invalid id.
--------------------------------+-------------------------
Reporter: nerrad | Owner: jeremyfelt
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.2
Component: Networks and Sites | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+-------------------------
Comment (by nerrad):
AHH gotcha... you are correct. Well then all that's really needed is to
update the tests for non truthy return on invalid id.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30566#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list