[wp-trac] [WordPress Trac] #63372: Tags page UI inconsistencies when adding or deleting tags

WordPress Trac noreply at wordpress.org
Wed Apr 30 11:00:33 UTC 2025


#63372: Tags page UI inconsistencies when adding or deleting tags
---------------------------------+-----------------------------
 Reporter:  sainathpoojary       |      Owner:  (none)
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Administration       |    Version:
 Severity:  normal               |   Keywords:
  Focuses:  ui, javascript, css  |
---------------------------------+-----------------------------
 There are several UI issues on the '''Tags''' page in the WordPress admin
 when adding or deleting tags:

 '''1. "No tags found." message not shown after last tag is deleted:'''
 When all tags are removed using the JavaScript interface, the message "No
 tags found." does not appear until the page is manually refreshed. Also,
 the `.tablenav` sections (top and bottom) are not removed immediately and
 remain visible until refresh.

 '''2. Bulk action and item count does not reappear when a new tag is added
 via JS:'''
 If there are no tags and a new tag is added using the input form (handled
 via JavaScript), the `.tablenav` sections remain hidden and do not
 reappear unless the page is refreshed.

 '''3. Pagination count not updated:'''
 When tags are added or deleted via JavaScript and the tag list is
 paginated, the pagination count is not updated accordingly. This leads to
 inconsistencies between the actual number of tags and what's shown in the
 pagination controls.

 These issues appear to stem from the fact that while tag creation and
 deletion are handled client-side via JavaScript, updates to `.tablenav`
 visibility and pagination count are handled by PHP and only rendered on
 full page reload.

 === Steps to reproduce
  1. Go to '''Posts > Tags'''.
  2. Delete all tags using the delete links in the table (handled via JS).
     * Notice that the "No tags found." message does not appear.
     * `.tablenav` sections remain visible.
  3. Refresh and Add a new tag using the "Add New Tag" form.
     * The new tag appears in the list via JavaScript.
     * However, the `.tablenav` sections remain hidden and do not reappear.
  4. Add or delete tags while viewing a paginated list.
     * The pagination count does not reflect the updated number of tags.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 135.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins: Test Reports 1.2.0

 === Screencast
 https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOaBpE7dHJcb5UXrLqDIo97jZKdMWg8iplmysR

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63372>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list