Themes: use explicit 'search installed themes' label and placeholder.

fixes #26496.

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


git-svn-id: http://core.svn.wordpress.org/trunk@26714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-09 07:41:10 +00:00
parent 2530fbbfba
commit 87265a374b
7 changed files with 11 additions and 6 deletions

View File

@ -6682,6 +6682,7 @@ span.imgedit-scale-warn {
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: 1.5; line-height: 1.5;
width: 280px;
} }
/** /**

File diff suppressed because one or more lines are too long

View File

@ -6682,6 +6682,7 @@ span.imgedit-scale-warn {
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: 1.5; line-height: 1.5;
width: 280px;
} }
/** /**

File diff suppressed because one or more lines are too long

View File

@ -70,7 +70,9 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append after screen title // Render and append after screen title
view.render(); view.render();
$('#wpbody h2:first').append( view.el ); $('#wpbody h2:first')
.append( $.parseHTML( '<label class="screen-reader-text" for="theme-search-input">' + l10n.search + '</label>' ) )
.append( view.el );
}, },
// Checks when the user gets close to the bottom // Checks when the user gets close to the bottom
@ -597,7 +599,7 @@ themes.view.Search = wp.Backbone.View.extend({
className: 'theme-search', className: 'theme-search',
attributes: { attributes: {
placeholder: l10n.search, placeholder: l10n.searchPlaceholder,
type: 'search' type: 'search'
}, },

File diff suppressed because one or more lines are too long

View File

@ -106,7 +106,8 @@ wp_localize_script( 'theme', '_wpThemeSettings', array(
), ),
'l10n' => array( 'l10n' => array(
'addNew' => __( 'Add New Theme' ), 'addNew' => __( 'Add New Theme' ),
'search' => __( 'Search...' ), 'search' => __( 'Search Installed Themes' ),
'searchPlaceholder' => __( 'Search installed themes...' ),
), ),
) ); ) );