### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
255 | 255 | foreach ( (array)$api->sections as $section_name => $content ) |
256 | 256 | $api->sections[$section_name] = wp_kses($content, $plugins_allowedtags); |
257 | 257 | foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) |
258 | | $api->$key = wp_kses($api->$key, $plugins_allowedtags); |
| 258 | $api->$key = empty($api->$key) ? '' : wp_kses($api->$key, $plugins_allowedtags); |
259 | 259 | |
260 | 260 | $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English. |
261 | 261 | if ( empty($section) || ! isset($api->sections[ $section ]) ) |