[wp-trac] [WordPress Trac] #37061: Use `get_sites()` in `get_blogs_of_user()`
WordPress Trac
noreply at wordpress.org
Tue Sep 27 17:18:07 UTC 2016
#37061: Use `get_sites()` in `get_blogs_of_user()`
-------------------------------------+------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: Networks and Sites | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: multisite
-------------------------------------+------------------------
Changes (by jeremyfelt):
* keywords: has-patch => has-patch needs-refresh
* owner: => flixos90
* status: new => assigned
Comment:
We had a good conversation around this today during multisite office
hours. Here's a quick final summary:
Let's avoid adding `userblog_id` as a magic (deprecated) property to
`WP_Site` and instead stick with returning an array of standard objects
populated via `WP_Site` objects in a similar way to they are now from the
DB. This keeps our options open for the future and keeps the changeset
clean for both multisite and single site.
For reference, `userblog_id` has existed since
[https://mu.trac.wordpress.org/changeset/63 MU:63].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37061#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list