diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js
index 55eb0fbf95..9b556eb481 100644
|
a
|
b
|
|
| 2025 | 2025 | $( function() { |
| 2026 | 2026 | var $pluginFilter = $( '#plugin-filter' ), |
| 2027 | 2027 | $bulkActionForm = $( '#bulk-action-form' ), |
| | 2028 | $postFilterForm = $( '#posts-filter' ), |
| 2028 | 2029 | $filesystemForm = $( '#request-filesystem-credentials-form' ), |
| 2029 | 2030 | $filesystemModal = $( '#request-filesystem-credentials-dialog' ), |
| 2030 | 2031 | $pluginSearch = $( '.plugins-php .wp-filter-search' ), |
| … |
… |
|
| 2528 | 2529 | wp.updates.queueChecker(); |
| 2529 | 2530 | } ); |
| 2530 | 2531 | |
| | 2532 | $postFilterForm.on( 'click', '#doaction, #doaction2', function( event ) { |
| | 2533 | var itemsSelected = $postFilterForm.find( 'input[name="post[]"]:checked' ); |
| | 2534 | |
| | 2535 | // Bail if there were no items selected. |
| | 2536 | if ( ! itemsSelected.length ) { |
| | 2537 | event.preventDefault(); |
| | 2538 | $( 'html, body' ).animate( { scrollTop: 0 } ); |
| | 2539 | |
| | 2540 | return wp.updates.addAdminNotice( { |
| | 2541 | id: 'no-items-selected', |
| | 2542 | className: 'notice-error is-dismissible', |
| | 2543 | message: __( 'Please select at least one item to perform this action on.' ) |
| | 2544 | } ); |
| | 2545 | } |
| | 2546 | } ); |
| | 2547 | |
| 2531 | 2548 | if ( $pluginInstallSearch.length ) { |
| 2532 | 2549 | $pluginInstallSearch.attr( 'aria-describedby', 'live-search-desc' ); |
| 2533 | 2550 | } |
diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php
index 7361aa1d40..7b56669503 100644
|
a
|
b
|
$wp_list_table->prepare_items(); |
| 236 | 236 | |
| 237 | 237 | wp_enqueue_script( 'inline-edit-post' ); |
| 238 | 238 | wp_enqueue_script( 'heartbeat' ); |
| | 239 | wp_enqueue_script( 'updates' ); |
| 239 | 240 | |
| 240 | 241 | if ( 'wp_block' === $post_type ) { |
| 241 | 242 | wp_enqueue_script( 'wp-list-reusable-blocks' ); |
| … |
… |
if ( $wp_list_table->has_items() ) { |
| 507 | 508 | </div> |
| 508 | 509 | |
| 509 | 510 | <?php |
| | 511 | wp_print_admin_notice_templates(); |
| | 512 | |
| 510 | 513 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |