Changeset 60188
- Timestamp:
- 04/25/2025 06:36:02 PM (7 weeks ago)
- Location:
- branches/6.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.8
-
branches/6.8/src/js/_enqueues/admin/common.js
r59988 r60188 1328 1328 // Observe submissions from posts lists for 'bulk_action' or users lists for 'new_role'. 1329 1329 var bulkFieldRelations = { 1330 'bulk_action' : 'action',1331 'changeit' : 'new_role'1330 'bulk_action' : window.bulkActionObserverIds.bulk_action, 1331 'changeit' : window.bulkActionObserverIds.changeit 1332 1332 }; 1333 1333 if ( ! Object.keys( bulkFieldRelations ).includes( submitterName ) ) { -
branches/6.8/src/wp-includes/script-loader.php
r59980 r60188 757 757 $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array( 'jquery', 'hoverIntent', 'utils', 'wp-a11y' ), false, 1 ); 758 758 $scripts->set_translations( 'common' ); 759 760 $bulk_action_observer_ids = array( 761 'bulk_action' => 'action', 762 'changeit' => 'new_role', 763 ); 764 did_action( 'init' ) && $scripts->localize( 765 'common', 766 'bulkActionObserverIds', 767 /** 768 * Filters the array of field name attributes for bulk actions. 769 * 770 * @since 6.8.1 771 * 772 * @param array $bulk_action_observer_ids { 773 * An array of field name attributes for bulk actions. 774 * 775 * @type string $bulk_action The bulk action field name. Default 'action'. 776 * @type string $changeit The new role field name. Default 'new_role'. 777 * } 778 */ 779 apply_filters( 'bulk_action_observer_ids', $bulk_action_observer_ids ) 780 ); 759 781 760 782 $scripts->add( 'wp-sanitize', "/wp-includes/js/wp-sanitize$suffix.js", array(), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.