Make WordPress Core

Ticket #18181: 18181.diff

File 18181.diff, 929 bytes (added by hakre, 13 years ago)

Check for existance.

  • wp-admin/includes/plugin-install.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    255255        foreach ( (array)$api->sections as $section_name => $content )
    256256                $api->sections[$section_name] = wp_kses($content, $plugins_allowedtags);
    257257        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);
    259259
    260260        $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English.
    261261        if ( empty($section) || ! isset($api->sections[ $section ]) )