Make WordPress Core

Changeset 17591


Ignore:
Timestamp:
04/03/2011 11:55:27 AM (14 years ago)
Author:
dd32
Message:

Remove debug cruft from [17590]. See #14182

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r17590 r17591  
    567567    function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) {
    568568        global $wp_filesystem;
    569 var_dump("delete_old_plugin($removed, $local_destination, $remote_destination, $plugin)");
     569
    570570        if ( is_wp_error($removed) )
    571571            return $removed; //Pass errors through.
     
    577577        $plugins_dir = $wp_filesystem->wp_plugins_dir();
    578578        $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) );
    579 var_dump(compact('plugins_dir', 'this_plugin_dir'), array('exists'=>  $wp_filesystem->exists($this_plugin_dir)) );
     579
    580580        if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If its already vanished.
    581581            return $removed;
     
    586586        else
    587587            $deleted = $wp_filesystem->delete($plugins_dir . $plugin);
    588 var_dump($deleted);
     588
    589589        if ( ! $deleted )
    590590            return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']);
Note: See TracChangeset for help on using the changeset viewer.