Ticket #50757: 50757.patch
File 50757.patch, 1.5 KB (added by , 5 years ago) |
---|
-
wp-admin/includes/class-wp-media-list-table.php
41 41 $this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] ); 42 42 43 43 $this->modes = array( 44 'list' => __( 'List View' ),45 'grid' => __( 'Grid View' ),44 'list' => __( 'List view' ), 45 'grid' => __( 'Grid view' ), 46 46 ); 47 47 48 48 parent::__construct( -
wp-includes/media-template.php
310 310 <?php // Template for the view switchers, used for example in the Media Grid. ?> 311 311 <script type="text/html" id="tmpl-media-library-view-switcher"> 312 312 <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-list"> 313 <span class="screen-reader-text"><?php _e( 'List View' ); ?></span>313 <span class="screen-reader-text"><?php _e( 'List view' ); ?></span> 314 314 </a> 315 315 <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" aria-current="page"> 316 <span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span>316 <span class="screen-reader-text"><?php _e( 'Grid view' ); ?></span> 317 317 </a> 318 318 </script> 319 319