[wp-trac] [WordPress Trac] #47685: Allow developers to filter the authors list on quick edit dropdown

WordPress Trac noreply at wordpress.org
Mon Oct 19 23:08:33 UTC 2020


#47685: Allow developers to filter the authors list on quick edit dropdown
---------------------------------------------+-----------------------------
 Reporter:  Mista-Flo                        |       Owner:  SergeyBiryukov
     Type:  enhancement                      |      Status:  reviewing
 Priority:  normal                           |   Milestone:  5.6
Component:  Quick/Bulk Edit                  |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch needs-dev-note commit  |     Focuses:  administration
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch needs-dev-note needs-testing => has-patch needs-dev-
     note commit


Comment:

 Tested with this code:

 {{{#!php
 <?php

 add_filter( 'quick_edit_dropdown_authors_args', function ( $users ) {
         $users['role__in']                = [ 'editor', 'administrator' ];
         $users['who']                     = '';
         $users['hide_if_only_one_author'] = false;

         return $users;
 } );
 }}}



 Works as expected.

 Removing `needs-testing`. This ticket is ready for `commit`.

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


More information about the wp-trac mailing list