[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:05:37 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: needs-unit-tests | Focuses: multisite
--------------------------------+------------------------------
Comment (by nerrad):
unit tests I can do for this ticket and will try to get them done tonight.
Long term though, are there already plans for implementing `WP_Site` and
`WP_Network` objects? If not, would a good intermediate step be to create
such objects using the existing stdClass properties? If so, I'd be open
to starting another ticket and doing some preliminary work on that?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30566#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list