Changeset 20592 for trunk/wp-admin/includes/theme-install.php
- Timestamp:
- 04/25/2012 07:37:19 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/theme-install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r20333 r20592 50 50 * @since 2.8.0 51 51 */ 52 function install_theme_search_form( ) {52 function install_theme_search_form( $type_selector = true ) { 53 53 $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : ''; 54 54 $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : ''; 55 if ( ! $type_selector ) 56 echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) . '</p>'; 55 57 ?> 56 <p class="install-help"><?php _e('Search for themes by keyword, author, or tag.') ?></p>57 58 58 <form id="search-themes" method="get" action=""> 59 59 <input type="hidden" name="tab" value="search" /> 60 <?php if ( $type_selector ) : ?> 60 61 <select name="type" id="typeselector"> 61 62 <option value="term" <?php selected('term', $type) ?>><?php _e('Keyword'); ?></option> … … 63 64 <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> 64 65 </select> 66 <?php endif; ?> 65 67 <input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" /> 66 68 <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?> … … 75 77 */ 76 78 function install_themes_dashboard() { 77 install_theme_search_form( );79 install_theme_search_form( false ); 78 80 ?> 79 81 <h4><?php _e('Feature Filter') ?></h4> 80 <p class="install-help"><?php _e( 'Find a theme based on specific features')?></p>82 <p class="install-help"><?php _e( 'Find a theme based on specific features.' ); ?></p> 81 83 82 84 <form method="get" action="">
Note: See TracChangeset
for help on using the changeset viewer.