Bump H3 headings to H2 on Themes screen for better accessibility.
props joehills. fixes #33560. Built from https://develop.svn.wordpress.org/trunk@33820 git-svn-id: http://core.svn.wordpress.org/trunk@33788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82a8cec3b3
commit
5a97ff5206
|
@ -533,8 +533,8 @@ function customize_themes_print_templates() {
|
||||||
<# if ( data.active ) { #>
|
<# if ( data.active ) { #>
|
||||||
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
|
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
|
||||||
<# } #>
|
<# } #>
|
||||||
<h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h3>
|
<h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2>
|
||||||
<h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h4>
|
<h3 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h3>
|
||||||
<p class="theme-description">{{{ data.description }}}</p>
|
<p class="theme-description">{{{ data.description }}}</p>
|
||||||
|
|
||||||
<# if ( data.parent ) { #>
|
<# if ( data.parent ) { #>
|
||||||
|
|
|
@ -983,7 +983,7 @@ themes.view.Themes = wp.Backbone.View.extend({
|
||||||
|
|
||||||
// 'Add new theme' element shown at the end of the grid
|
// 'Add new theme' element shown at the end of the grid
|
||||||
if ( themes.data.settings.canInstall ) {
|
if ( themes.data.settings.canInstall ) {
|
||||||
this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></a></div>' );
|
this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.parent.page++;
|
this.parent.page++;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -225,14 +225,14 @@ foreach ( $themes as $theme ) :
|
||||||
<div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
|
<div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
|
||||||
|
|
||||||
<?php if ( $theme['active'] ) { ?>
|
<?php if ( $theme['active'] ) { ?>
|
||||||
<h3 class="theme-name" id="<?php echo $aria_name; ?>">
|
<h2 class="theme-name" id="<?php echo $aria_name; ?>">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: theme name */
|
/* translators: %s: theme name */
|
||||||
printf( __( '<span>Active:</span> %s' ), $theme['name'] );
|
printf( __( '<span>Active:</span> %s' ), $theme['name'] );
|
||||||
?>
|
?>
|
||||||
</h3>
|
</h2>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
|
<h2 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h2>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div class="theme-actions">
|
<div class="theme-actions">
|
||||||
|
@ -327,14 +327,14 @@ $can_delete = current_user_can( 'delete_themes' );
|
||||||
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
|
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
|
||||||
|
|
||||||
<# if ( data.active ) { #>
|
<# if ( data.active ) { #>
|
||||||
<h3 class="theme-name" id="{{ data.id }}-name">
|
<h2 class="theme-name" id="{{ data.id }}-name">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: theme name */
|
/* translators: %s: theme name */
|
||||||
printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' );
|
printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' );
|
||||||
?>
|
?>
|
||||||
</h3>
|
</h2>
|
||||||
<# } else { #>
|
<# } else { #>
|
||||||
<h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
|
<h2 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h2>
|
||||||
<# } #>
|
<# } #>
|
||||||
|
|
||||||
<div class="theme-actions">
|
<div class="theme-actions">
|
||||||
|
@ -376,8 +376,8 @@ $can_delete = current_user_can( 'delete_themes' );
|
||||||
<# if ( data.active ) { #>
|
<# if ( data.active ) { #>
|
||||||
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
|
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
|
||||||
<# } #>
|
<# } #>
|
||||||
<h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h3>
|
<h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2>
|
||||||
<h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h4>
|
<h3 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h3>
|
||||||
|
|
||||||
<# if ( data.hasUpdate ) { #>
|
<# if ( data.hasUpdate ) { #>
|
||||||
<div class="theme-update-message">
|
<div class="theme-update-message">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-33819';
|
$wp_version = '4.4-alpha-33820';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue