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

WordPress Trac noreply at wordpress.org
Thu Apr 28 22:08:50 UTC 2016


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

 * keywords:  has-patch needs-refresh has-unit-tests => has-patch has-unit-
     tests
 * milestone:  Awaiting Review => 4.6


Comment:

 [attachment:36707.diff] is a riff on/refresh of @jtsternberg's original
 patch and uses `count()` rather than `empty()` to check the returned data
 from the filter.

 Should we start with `false` instead and allow for the return of an empty
 array?

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


More information about the wp-trac mailing list