Ticket #37951: 37951.patch
File 37951.patch, 785 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/theme.php
71 71 $theme_dir = trailingslashit( $themes_dir . $stylesheet ); 72 72 $deleted = $wp_filesystem->delete( $theme_dir, true ); 73 73 74 /** 75 * Fires immediately after a theme deletion attempt. 76 * 77 * @since 4.6.1 78 * 79 * @param string $stylesheet Stylesheet of the theme. 80 * @param bool $deleted Whether the theme deletion was successful. 81 */ 82 do_action( 'deleted_theme', $stylesheet, $deleted ); 83 74 84 if ( ! $deleted ) { 75 85 return new WP_Error( 'could_not_remove_theme', sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet ) ); 76 86 }