[wp-trac] [WordPress Trac] #36707: Add pre_get_blogs_of_user filter.

WordPress Trac noreply at wordpress.org
Fri Apr 29 15:43:38 UTC 2016


#36707: Add pre_get_blogs_of_user filter.
--------------------------------------+-------------------------
 Reporter:  nerrad                    |       Owner:  jeremyfelt
     Type:  enhancement               |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.6
Component:  Users                     |     Version:  3.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+-------------------------
Changes (by jeremyfelt):

 * owner:   => jeremyfelt
 * status:  new => reviewing


Comment:

 Replying to [comment:5 jtsternberg]:
 > > Should we start with `false` instead and allow for the return of an
 empty array?
 >
 > Actually yah, that seems like a good idea, though it probably should be
 `null` in keeping with the precedent of other `'pre_*` filters in
 WordPress.

 +1

 > Also, it looks like the static variable is a no-go?

 For this ticket, yes. We can continue discussing improvements to
 `get_blogs_of_user()` on #31746.

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


More information about the wp-trac mailing list