WordPress.org

Make WordPress Core

Ticket #16400: ticket.16400.diff

File ticket.16400.diff, 509 bytes (added by ptahdunbar, 9 years ago)
  • wp-admin/includes/plugin.php

     
    710710                else
    711711                        $deleted = $wp_filesystem->delete($plugins_dir . $plugin_file);
    712712
    713                 if ( ! $deleted )
     713                if ( ! $deleted ) {
    714714                        $errors[] = $plugin_file;
     715                } else {
     716                        // allow for commit transaction
     717                        do_action( 'deleted_plugin', $plugin_file );
     718                }
    715719        }
    716720
    717721        if ( ! empty($errors) )