Make WordPress Core

Opened 5 weeks ago

Last modified 3 weeks ago

#63453 new defect (bug)

Inconsistent confirmation for deleting taxonomy term (Single vs Bulk Action)

Reported by: pmbaldha's profile pmbaldha Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: has-patch has-test-info
Focuses: ui, javascript, administration Cc:

Description

There is an inconsistency in the behavior of taxonomy term deletion in the WordPress admin.

When deleting a single taxonomy term (e.g., a category) from the Posts > Categories screen, WordPress displays a JavaScript confirmation prompt. However, when deleting multiple categories via the Bulk Actions dropdown, no confirmation is shown, the categories are deleted immediately.

This inconsistent behavior can lead to accidental, permanent deletion of terms. The confirmation behavior should be consistent across both single and bulk deletion actions.

Steps to Reproduce

  1. Navigate to Posts > Categories in the WordPress admin.
  1. Add a few categories.
  1. Click the Delete link for an individual category.
  • ✅ A confirmation dialog appears.
  1. Now, select multiple categories using checkboxes.
  1. Choose Delete from the Bulk actions dropdown and click Apply.
  • ❌ Categories are deleted immediately, with no confirmation.

Expected Behavior

When performing a bulk delete, WordPress should prompt a confirmation dialog, just like it does for single deletion.

Actual Behavior

Bulk deletion deletes the selected categories immediately, without any prompt.

Attachments (2)

single-term-confimation.png (137.4 KB) - added by pmbaldha 5 weeks ago.
Single delete term confirmation popup
bulk-term-without-confirmation.png (126.1 KB) - added by pmbaldha 5 weeks ago.

Download all attachments as: .zip

Change History (9)

@pmbaldha
5 weeks ago

Single delete term confirmation popup

This ticket was mentioned in PR #8812 on WordPress/wordpress-develop by @nikunj8866.


5 weeks ago
#1

  • Keywords has-patch added

#2 @nikunj8866
5 weeks ago

  • Keywords needs-testing added

#3 @pratiklondhe
5 weeks ago

Patch Tested ( tested in WP playground ): https://github.com/WordPress/wordpress-develop/pull/8812

Old behaviour :

  • Bulk delete of categories did not show any pop-up warning

New Behaviour:

  • ✅ Now bulk delete shows the same popup as deleting the single category term

#4 @oglekler
5 weeks ago

  • Component changed from Taxonomy to Quick/Bulk Edit

#5 @parthvataliya
4 weeks ago

  • Keywords has-test-info added

Test Report

Description

I've tested the PR and it works fine.

Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/8812.diff

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.26
  • Server: nginx/1.27.3
  • Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.26)
  • Browser: Chrome 134.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty 2.9
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

#6 @dhruvang21
4 weeks ago

Test Report

Description

This report validates that the patch works as expected.

Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/8812.diff

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.22
  • Server: nginx/1.27.0
  • Database: mysqli (Server: 8.0.39 / Client: mysqlnd 8.2.22)
  • Browser: Chrome 136.0.0.0
  • OS: Linux
  • Theme: Twenty Ten 4.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

#7 @nikunj8866
3 weeks ago

  • Keywords needs-testing removed
Note: See TracTickets for help on using tickets.