Make WordPress Core


Ignore:
Timestamp:
08/13/2024 11:35:51 PM (10 months ago)
Author:
peterwilsoncc
Message:

Bulk/Quick Edit: Remove duplicate HTML IDs from post list tables.

Removes duplicate IDs on the post list admin pages affecting various list items, selects and checkboxes:

  • JavaScript duplication of the inline editing HTML for bulk editing renames various IDs to include the prefix bulk-edit-,
  • IDs in the Category Checkbox Walker make use of wp_unique_prefixed_id() to avoid duplicates, resulting in a numeric suffix, and,
  • the post parent dropdown for the bulk editor is given a custom ID bulk_edit_post_parent.

Props peterwilsoncc, sergeybiryukov, azaozz, joedolson, siliconforks, zodiac1978, rcreators.
Fixes #61014.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r58745 r58894  
    18431843                            if ( $bulk ) {
    18441844                                $dropdown_args['show_option_no_change'] = __( '— No Change —' );
     1845                                $dropdown_args['id']                    = 'bulk_edit_post_parent';
    18451846                            }
    18461847
Note: See TracChangeset for help on using the changeset viewer.