Make WordPress Core

Opened 2 months ago

Closed 2 months ago

#63395 closed defect (bug) (duplicate)

Minor UI improvement : Category Count Not Updating After Adding/Deleting New Category without page refresh

Reported by: akshaydhere's profile akshaydhere Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: ui, accessibility, javascript Cc:

Description

There is UI issues on the Category page in the WordPress admin when adding or deleting categories:

  1. Navigate to Posts.
  1. In the Categories panel, click “+ Add Category”.
  1. Enter a new category name (e.g., Test Category 1) and click “Add New Category”.
  1. The new category gets added and auto-selected via JavaScript (AJAX).
  1. Without saving or refreshing the page, add another new category (e.g., Test Category 2) in the same way.
  1. Observe the category count in the top right.
  1. Expected: The category count should increment.
  1. Actual: The count remains unchanged or still shows 1, even though the second category should increase the count.

Environment
WordPress: 6.8.1
PHP: 8.2
Theme: Twenty Twenty-Five Version: 1.2
Local Server: WordPress Studio

Attachments (1)

cat-issue.webm (1.4 MB) - added by akshaydhere 2 months ago.

Download all attachments as: .zip

Change History (2)

#1 @sourav08
2 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

Hey @akshaydhere Thanks for the issue!

This issue has been previously discussed in ticket #45076.

Since this ticket describes the same behavior, I'm marking it as a duplicate of #45076 to consolidate the discussion and any future improvements in one place.

Note: See TracTickets for help on using tickets.