[wp-trac] [WordPress Trac] #37061: Use `get_sites()` in `get_blogs_of_user()`
WordPress Trac
noreply at wordpress.org
Fri Sep 2 04:29:17 UTC 2016
#37061: Use `get_sites()` in `get_blogs_of_user()`
--------------------------------+------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Networks and Sites | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------
Comment (by jorbin):
Replying to [comment:1 flixos90]:
> A minor issue is that on a non-multisite, the array will still contain a
raw object since `WP_Site` is not available there, so one has to be aware
of that. However, I still think we should do this as it's an improvement
for Multisite setups.
I don't think having something different returned under MS from single
site is a good decision. Seems like something that could cause plugins to
have bugs only under one or the other. Or for code originally written for
MS to not work and cause confusion when run on single site installs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37061#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list