[wp-trac] [WordPress Trac] #55316: Counter for total plugins is not updated after a plugin is deleted

WordPress Trac noreply at wordpress.org
Fri Mar 4 10:26:24 UTC 2022


#55316: Counter for total plugins is not updated after a plugin is deleted
-------------------------------------------------+-------------------------
 Reporter:  mitogh                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.0
Component:  Plugins                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-testing-info       |     Focuses:  ui,
  needs-refresh                                  |  administration
-------------------------------------------------+-------------------------
Changes (by costdev):

 * keywords:   => needs-testing has-testing-info needs-refresh


Comment:

 Patch [https://core.trac.wordpress.org/attachment/ticket/55316/55316.diff
 55316.diff] should update the item count when a plugin is deleted.

 However, this does not account for i18n/rtl and will need some input from
 a developer familiar with this.

 Steps to test:

 1. Navigate to `Plugins > Installed Plugins`.
 2. Observe the total count of "All" plugins.
 3. Click on Delete and accept the prompt to remove it.
 4. Observe how the total count decreased by 1 but the total items count on
 the right was not modified after the plugin was deleted.
 5. Apply
 [https://core.trac.wordpress.org/attachment/ticket/55316/55316.diff
 55316.diff].
 6. Run `npm run build:dev`.
 7. Navigation to `Plugins > Installed Plugins`.
 8. Do a hard refresh to ensure that scripts have been refreshed.
 9. Repeat steps 2-4. This time, the item count should decrease by 1 as
 expected.

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


More information about the wp-trac mailing list