Changeset 23416 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 02/14/2013 10:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r22459 r23416 117 117 */ 118 118 function install_search_form( $type_selector = true ) { 119 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : 'term';120 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';119 $type = isset($_REQUEST['type']) ? wp_unslash( $_REQUEST['type'] ) : 'term'; 120 $term = isset($_REQUEST['s']) ? wp_unslash( $_REQUEST['s'] ) : ''; 121 121 122 122 ?><form id="search-plugins" method="get" action=""> … … 161 161 */ 162 162 function install_plugins_favorites_form() { 163 $user = ! empty( $_GET['user'] ) ? stripslashes( $_GET['user'] ) : get_user_option( 'wporg_favorites' );163 $user = ! empty( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' ); 164 164 ?> 165 165 <p class="install-help"><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p> … … 252 252 } 253 253 if ( isset($_GET['from']) ) 254 $url .= '&from=' . urlencode( stripslashes($_GET['from']));254 $url .= '&from=' . urlencode( wp_unslash( $_GET['from'] ) ); 255 255 256 256 return compact('status', 'url', 'version'); … … 265 265 global $tab; 266 266 267 $api = plugins_api('plugin_information', array('slug' => stripslashes( $_REQUEST['plugin'] ) ));267 $api = plugins_api('plugin_information', array('slug' => wp_unslash( $_REQUEST['plugin'] ) )); 268 268 269 269 if ( is_wp_error($api) ) … … 296 296 } 297 297 298 $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English.298 $section = isset($_REQUEST['section']) ? wp_unslash( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English. 299 299 if ( empty($section) || ! isset($api->sections[ $section ]) ) 300 300 $section = array_shift( $section_titles = array_keys((array)$api->sections) );
Note: See TracChangeset
for help on using the changeset viewer.