Ticket #37188: patch.diff
File patch.diff, 1.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/upload.php
73 73 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 74 74 ?> 75 75 <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>"> 76 <h 1>77 <?php78 echo esc_html( $title );79 if ( current_user_can( 'upload_files' ) ) { ?>80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php81 }82 ?>83 </h 1>76 <h2> 77 <?php 78 echo esc_html( $title ); 79 if ( current_user_can( 'upload_files' ) ) { ?> 80 <a href="media-new.php" class="upload-view-toggle page-title-action aria-button-if-js" aria-expanded="false"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 81 } 82 ?> 83 </h2> 84 84 <div class="error hide-if-js"> 85 <p><?php printf( 86 /* translators: %s: list view URL */ 87 __( 'The grid view for the Media Library requires JavaScript. <a href="%s">Switch to the list view</a>.' ), 88 'upload.php?mode=list' 89 ); ?></p> 85 <p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p> 90 86 </div> 91 87 </div> 92 88 <?php