Changeset 23567 for trunk/wp-admin/includes/theme-install.php
- Timestamp:
- 03/01/2013 05:14:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r23554 r23567 51 51 */ 52 52 function install_theme_search_form( $type_selector = true ) { 53 $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term';54 $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';53 $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; 54 $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; 55 55 if ( ! $type_selector ) 56 56 echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) . '</p>'; … … 180 180 global $tab, $themes_allowedtags, $wp_list_table; 181 181 182 $theme = themes_api( 'theme_information', array( 'slug' => stripslashes( $_REQUEST['theme'] ) ) );182 $theme = themes_api( 'theme_information', array( 'slug' => wp_unslash( $_REQUEST['theme'] ) ) ); 183 183 184 184 if ( is_wp_error( $theme ) )
Note: See TracChangeset
for help on using the changeset viewer.