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

WordPress Trac noreply at wordpress.org
Fri Apr 29 01:07:22 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
--------------------------------------+------------------------

Comment (by jtsternberg):

 Replying to [comment:4 jeremyfelt]:
 > [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?

 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.

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

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


More information about the wp-trac mailing list