Make WordPress Core

Ticket #50757: 50757.patch

File 50757.patch, 1.5 KB (added by ramiy, 5 years ago)
  • wp-admin/includes/class-wp-media-list-table.php

     
    4141                $this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] );
    4242
    4343                $this->modes = array(
    44                         'list' => __( 'List View' ),
    45                         'grid' => __( 'Grid View' ),
     44                        'list' => __( 'List view' ),
     45                        'grid' => __( 'Grid view' ),
    4646                );
    4747
    4848                parent::__construct(
  • wp-includes/media-template.php

     
    310310        <?php // Template for the view switchers, used for example in the Media Grid. ?>
    311311        <script type="text/html" id="tmpl-media-library-view-switcher">
    312312                <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>
    314314                </a>
    315315                <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>
    317317                </a>
    318318        </script>
    319319