[wp-trac] [WordPress Trac] #45640: get_blogs_of_user improvements

WordPress Trac noreply at wordpress.org
Fri Dec 14 13:45:00 UTC 2018


#45640: get_blogs_of_user improvements
----------------------------------------+------------------------------
 Reporter:  maniu                       |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Networks and Sites          |     Version:  3.0
 Severity:  minor                       |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite
----------------------------------------+------------------------------
Changes (by earnjam):

 * keywords:  has-patch => has-patch needs-unit-tests
 * version:  trunk => 3.0


Comment:

 Hi @maniu, thanks for your ticket! There are definitely improvements to be
 made around querying sites across a network and improvements to
 `get_blogs_of_user()` are likely part of the overall
 [https://make.wordpress.org/core/roadmap/multisite/ multisite roadmap].

 We'll probably pick up more of those discussions as we resume our weekly
 meetings in Slack in the new year and post 5.0.

 Regarding the specific patch here, I wonder if it might make more sense to
 keep the second parameter as the current boolean value, and instead
 checking for some type of `all_ids` value in the `$args` array.

 Mixing the type (bool, string) and usage (manipulating the returned list
 of sites vs returned fields) of a single parameter feels like it could
 easily lead to confusion.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45640#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list