I18N: Merge duplicate "List view" and "Grid view" strings.
Props ramiy. Fixes #50757. git-svn-id: https://develop.svn.wordpress.org/trunk@48618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f6b24a02f8
commit
1175600b1f
@ -41,8 +41,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
$this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] );
|
||||
|
||||
$this->modes = array(
|
||||
'list' => __( 'List View' ),
|
||||
'grid' => __( 'Grid View' ),
|
||||
'list' => __( 'List view' ),
|
||||
'grid' => __( 'Grid view' ),
|
||||
);
|
||||
|
||||
parent::__construct(
|
||||
|
@ -310,10 +310,10 @@ function wp_print_media_templates() {
|
||||
<?php // Template for the view switchers, used for example in the Media Grid. ?>
|
||||
<script type="text/html" id="tmpl-media-library-view-switcher">
|
||||
<a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-list">
|
||||
<span class="screen-reader-text"><?php _e( 'List View' ); ?></span>
|
||||
<span class="screen-reader-text"><?php _e( 'List view' ); ?></span>
|
||||
</a>
|
||||
<a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" aria-current="page">
|
||||
<span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span>
|
||||
<span class="screen-reader-text"><?php _e( 'Grid view' ); ?></span>
|
||||
</a>
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user