| 1 | Index: wp-admin/includes/theme-install.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/theme-install.php (revision 21318) |
|---|
| 4 | +++ wp-admin/includes/theme-install.php (working copy) |
|---|
| 5 | @@ -64,7 +64,19 @@ |
|---|
| 6 | <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> |
|---|
| 7 | <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> |
|---|
| 8 | </select> |
|---|
| 9 | - <label class="screen-reader-text" for="s"><?php printf( __("Search by %s"), ( $type == 'term' ? __( 'keyword' ) : $type ) ); ?></label> |
|---|
| 10 | + <label class="screen-reader-text" for="s"><?php |
|---|
| 11 | + switch ( $type ) { |
|---|
| 12 | + case 'term': |
|---|
| 13 | + _e( 'Search by keyword' ); |
|---|
| 14 | + break; |
|---|
| 15 | + case 'author': |
|---|
| 16 | + _e( 'Search by author' ); |
|---|
| 17 | + break; |
|---|
| 18 | + case 'tag': |
|---|
| 19 | + _e( 'Search by tag' ); |
|---|
| 20 | + break; |
|---|
| 21 | + } |
|---|
| 22 | + ?></label> |
|---|
| 23 | <?php else : ?> |
|---|
| 24 | <label class="screen-reader-text" for="s"><?php _e("Search by keyword"); ?></label> |
|---|
| 25 | <?php endif; ?> |
|---|