diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/upload.php --- a/wp/wp-admin/upload.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/upload.php Wed Sep 21 18:19:35 2022 +0200 @@ -87,8 +87,8 @@ - - " class="page-title-action aria-button-if-js"> + @@ -120,6 +120,8 @@ if ( $doaction ) { check_admin_referer( 'bulk-media' ); + $post_ids = array(); + if ( 'delete_all' === $doaction ) { $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type='attachment' AND post_status = 'trash'" ); $doaction = 'delete'; @@ -147,7 +149,7 @@ break; case 'trash': - if ( ! isset( $post_ids ) ) { + if ( empty( $post_ids ) ) { break; } foreach ( (array) $post_ids as $post_id ) { @@ -162,13 +164,13 @@ $location = add_query_arg( array( 'trashed' => count( $post_ids ), - 'ids' => join( ',', $post_ids ), + 'ids' => implode( ',', $post_ids ), ), $location ); break; case 'untrash': - if ( ! isset( $post_ids ) ) { + if ( empty( $post_ids ) ) { break; } foreach ( (array) $post_ids as $post_id ) { @@ -183,7 +185,7 @@ $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); break; case 'delete': - if ( ! isset( $post_ids ) ) { + if ( empty( $post_ids ) ) { break; } foreach ( (array) $post_ids as $post_id_del ) { @@ -270,13 +272,18 @@ - + ' . __( 'Search results for “%s”' ) . '', get_search_query() ); + echo ''; + printf( + /* translators: %s: Search query. */ + __( 'Search results for: %s' ), + '' . get_search_query() . '' + ); + echo ''; } ?>