X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/bf5c68485ef07868ad0a91168ecd0092af7661ae..8f374b7233bc2815ccc387e448d208c5434eb961:/wp-admin/includes/theme-install.php diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 9171daba..1fdafec8 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -24,15 +24,15 @@ $theme_field_defaults = array( 'description' => true, 'sections' => false, 'test * * @since 2.8.0 * - * @deprecated since 3.1.0 Use get_theme_feature_list() instead. + * @deprecated since 3.1.0 Use get_theme_feature_list() instead. * * @return array */ function install_themes_feature_list( ) { if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) - set_transient( 'wporg_theme_feature_list', array( ), 10800); + set_transient( 'wporg_theme_feature_list', array( ), 10800); - if ( $cache ) + if ( $cache ) return $cache; $feature_list = themes_api( 'feature_list', array( ) ); @@ -49,20 +49,22 @@ function install_themes_feature_list( ) { * * @since 2.8.0 */ -function install_theme_search_form() { - $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : ''; +function install_theme_search_form( $type_selector = true ) { + $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term'; $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : ''; + if ( ! $type_selector ) + echo '
' . __( 'Search for themes by keyword.' ) . '
'; ?> - - -