Changeset 35669 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 11/18/2015 05:57:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r35495 r35669 817 817 } 818 818 819 /** 820 * Fires immediately before a plugin deletion attempt. 821 * 822 * @since 4.4.0 823 * 824 * @param string $plugin_file Plugin file name. 825 */ 826 do_action( 'delete_plugin', $plugin_file ); 827 819 828 $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) ); 829 820 830 // If plugin is in its own directory, recursively delete the directory. 821 831 if ( strpos( $plugin_file, '/' ) && $this_plugin_dir != $plugins_dir ) { //base check on if plugin includes directory separator AND that it's not the root plugin folder … … 833 843 * @param bool $deleted Whether the plugin deletion was successful. 834 844 */ 835 do_action( 'delete _plugin', $plugin_file, $deleted );845 do_action( 'deleted_plugin', $plugin_file, $deleted ); 836 846 837 847 if ( ! $deleted ) {
Note: See TracChangeset
for help on using the changeset viewer.