Changeset 18586
- Timestamp:
- 08/23/2011 03:56:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r18481 r18586 255 255 foreach ( (array)$api->sections as $section_name => $content ) 256 256 $api->sections[$section_name] = wp_kses($content, $plugins_allowedtags); 257 foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) 258 $api->$key = wp_kses($api->$key, $plugins_allowedtags); 257 foreach ( array( 'version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug' ) as $key ) { 258 if ( isset( $api->$key ) ) 259 $api->$key = wp_kses( $api->$key, $plugins_allowedtags ); 260 } 259 261 260 262 $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English.
Note: See TracChangeset
for help on using the changeset viewer.