wp_enqueue_script( 'media-grid' );
wp_enqueue_script( 'media' );
+ remove_action( 'admin_head', 'wp_admin_canonical_url' );
+
$q = $_GET;
// let JS handle this
unset( $q['s'] );
break;
foreach ( (array) $post_ids as $post_id ) {
if ( !current_user_can( 'delete_post', $post_id ) )
- wp_die( __( 'You are not allowed to move this post to the trash.' ) );
+ wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
if ( !wp_trash_post( $post_id ) )
wp_die( __( 'Error in moving to Trash.' ) );
break;
foreach ( (array) $post_ids as $post_id ) {
if ( !current_user_can( 'delete_post', $post_id ) )
- wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
+ wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
if ( !wp_untrash_post( $post_id ) )
wp_die( __( 'Error in restoring from Trash.' ) );
break;
foreach ( (array) $post_ids as $post_id_del ) {
if ( !current_user_can( 'delete_post', $post_id_del ) )
- wp_die( __( 'You are not allowed to delete this post.' ) );
+ wp_die( __( 'You are not allowed to delete this item.' ) );
if ( !wp_delete_attachment( $post_id_del ) )
wp_die( __( 'Error in deleting.' ) );
'<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter media items list' ),
+ 'heading_pagination' => __( 'Media items list navigation' ),
+ 'heading_list' => __( 'Media items list' ),
+) );
+
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>