Accessibility: Remove inappropriate content from the Themes screen heading.

Props joedolson.

See #26601.

Built from https://develop.svn.wordpress.org/trunk@39528


git-svn-id: http://core.svn.wordpress.org/trunk@39468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-12-06 23:12:41 +00:00
parent c1f59f9fe3
commit a9600d1a53
8 changed files with 14 additions and 15 deletions

View File

@ -949,9 +949,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
float: none;
clear: both;
right: 0;
top: 0;
left: 0;
margin: 10px 0;
margin: -5px 0 20px 0;
width: 100%;
max-width: 280px;
}

File diff suppressed because one or more lines are too long

View File

@ -949,9 +949,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
float: none;
clear: both;
left: 0;
top: 0;
right: 0;
margin: 10px 0;
margin: -5px 0 20px 0;
width: 100%;
max-width: 280px;
}

File diff suppressed because one or more lines are too long

View File

@ -83,7 +83,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
},
// Defines search element container
searchContainer: $( '#wpbody h1:first' ),
searchContainer: $( '.search-form' ),
// Search input and view
// for current theme collection
@ -1773,10 +1773,6 @@ themes.view.Installer = themes.view.Appearance.extend({
activeClass: 'current',
// Overwrite search container class to append search
// in new location
searchContainer: $( '.wp-filter .search-form' ),
/*
* When users press the "Upload Theme" button, show the upload form in place.
*/

File diff suppressed because one or more lines are too long

View File

@ -152,12 +152,17 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
<h1><?php esc_html_e( 'Themes' ); ?>
<h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?>
<span class="title-count theme-count"><?php echo count( $themes ); ?></span>
</h1>
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
<?php endif; ?>
</h1>
<span class="search-form"></span>
<hr class="wp-header-end">
<?php
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39527';
$wp_version = '4.8-alpha-39528';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.