WordPress.org

Make WordPress Core

Ticket #16143: 16143.patch

File 16143.patch, 982 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-admin/includes/plugin.php

     
    646646 * @return mixed
    647647 */
    648648function delete_plugins($plugins, $redirect = '' ) {
    649         global $wp_filesystem;
     649        global $wp_filesystem, $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $is_iphone, $user_identity, $current_site;
    650650
    651651        if ( empty($plugins) )
    652652                return false;
  • wp-admin/includes/theme.php

     
    4646 * @return mixed
    4747 */
    4848function delete_theme($template) {
    49         global $wp_filesystem;
     49        global $wp_filesystem, $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $is_iphone, $user_identity, $current_site;
    5050
    5151        if ( empty($template) )
    5252                return false;