Accessibility: Improve the headings hierarchy in the Add Themes screen.

Fixes #33819.

git-svn-id: https://develop.svn.wordpress.org/trunk@35273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia
2015-10-19 22:03:48 +00:00
parent 42687da29c
commit 3ee61161c6
4 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -960,7 +960,7 @@ themes.view.Themes = wp.Backbone.View.extend({
}
// Make sure the add-new stays at the end
if ( page >= 1 ) {
if ( ! themes.isInstall && page >= 1 ) {
$( '.add-new-theme' ).remove();
}
@@ -982,7 +982,7 @@ themes.view.Themes = wp.Backbone.View.extend({
});
// 'Add new theme' element shown at the end of the grid
if ( themes.data.settings.canInstall ) {
if ( ! themes.isInstall && 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><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' );
}