Changeset 17591
- Timestamp:
- 04/03/2011 11:55:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r17590 r17591 567 567 function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) { 568 568 global $wp_filesystem; 569 var_dump("delete_old_plugin($removed, $local_destination, $remote_destination, $plugin)"); 569 570 570 if ( is_wp_error($removed) ) 571 571 return $removed; //Pass errors through. … … 577 577 $plugins_dir = $wp_filesystem->wp_plugins_dir(); 578 578 $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 580 580 if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If its already vanished. 581 581 return $removed; … … 586 586 else 587 587 $deleted = $wp_filesystem->delete($plugins_dir . $plugin); 588 var_dump($deleted); 588 589 589 if ( ! $deleted ) 590 590 return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']);
Note: See TracChangeset
for help on using the changeset viewer.