[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
Tue Dec 2 00:47:21 UTC 2014
#30566: Fix "Trying to get property of non-object" notice when calling
get_blogaddress_by_id() with an invalid id.
--------------------------------+------------------------------
Reporter: nerrad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------------
Changes (by nerrad):
* keywords: needs-unit-tests => has-patch
Comment:
Tests added and I went with your suggestion for using `isset()` checks
@johnjamesjacoby
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30566#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list