[wp-trac] [WordPress Trac] #45076: Category counter is not updated

WordPress Trac noreply at wordpress.org
Mon Jan 26 16:13:02 UTC 2026


#45076: Category counter is not updated
-------------------------------------------------+-------------------------
 Reporter:  mukesh27                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots dev-feedback has-    |     Focuses:
  patch needs-refresh                            |  administration
-------------------------------------------------+-------------------------
Changes (by huzaifaalmesbah):

 * keywords:  needs-testing has-screenshots dev-feedback has-patch => has-
     screenshots dev-feedback has-patch needs-refresh


Comment:

 == Patch Testing Report

 Patch Tested: https://github.com/WordPress/wordpress-develop/pull/9336

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 143.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Two 2.1
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps taken
 1. Logged into the WordPress admin dashboard.
 2. Navigated to Posts → Categories.
 3. Observed the category counter displayed at the top of the category
 list.
 4. Added a new category using the Add New Category form.
 5. Verified that the new category appears in the list.
 6. Noted that the category counter does not update immediately and only
 updates after refreshing the page (issue reproduction).
 7. Attempted to apply the patch from PR #9336.
 8. Patch application failed with rejected hunks in
 src/js/_enqueues/admin/tags.js.
 9. ❌ Patch is failing

 === Expected result
 - When a new category is added or an existing category is deleted via the
 admin panel, the total category counter should update immediately without
 requiring a page refresh.
 - The patch should apply cleanly and enable this behavior.

 === Additional Notes
 - The patch appears to be out of sync with the current version of tags.js.
 - A refreshed or rebased patch is required before testing can proceed.
 - Once updated, testing should verify both add and delete category
 actions.

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


More information about the wp-trac mailing list