Changeset 20592 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 04/25/2012 07:37:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r20490 r20592 85 85 86 86 <h4><?php _e('Search') ?></h4> 87 <p class="install-help"><?php _e('Search for plugins by keyword, author, or tag.') ?></p> 88 <?php install_search_form(); ?> 87 <?php install_search_form( false ); ?> 89 88 90 89 <h4><?php _e('Popular tags') ?></h4> … … 117 116 * @since 2.7.0 118 117 */ 119 function install_search_form( ){118 function install_search_form( $type_selector = true ) { 120 119 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 121 120 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; … … 123 122 ?><form id="search-plugins" method="get" action=""> 124 123 <input type="hidden" name="tab" value="search" /> 124 <?php if ( $type_selector ) : ?> 125 125 <select name="type" id="typeselector"> 126 126 <option value="term"<?php selected('term', $type) ?>><?php _e('Keyword'); ?></option> … … 128 128 <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option> 129 129 </select> 130 <?php endif; ?> 130 131 <input type="search" name="s" value="<?php echo esc_attr($term) ?>" /> 131 132 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
Note: See TracChangeset
for help on using the changeset viewer.