[wp-trac] [WordPress Trac] #57278: Add filter to allow filtering of the must-use plugins list in the admin

WordPress Trac noreply at wordpress.org
Mon Feb 6 03:52:37 UTC 2023


#57278: Add filter to allow filtering of the must-use plugins list in the admin
-------------------------------------------------+-------------------------
 Reporter:  nateallen                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Plugins                              |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch changes-requested has-     |     Focuses:
  unit-tests                                     |  administration
-------------------------------------------------+-------------------------
Changes (by nateallen):

 * keywords:  has-patch needs-unit-tests changes-requested => has-patch
     changes-requested has-unit-tests


Comment:

 Thanks everyone for the suggestions! I implemented the change as a filter
 for all of the plugins instead of just must-use plugins.

 The filter is added right before the totals get calculated. This ensures
 accuracy of the plugin count even if the filter is used for adding or
 removing plugins.

 I also added a test for the filter.

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


More information about the wp-trac mailing list