Changeset 56174 for trunk/src/wp-admin/includes/class-plugin-upgrader.php
- Timestamp:
- 07/09/2023 07:50:52 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r55911 r56174 213 213 add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 ); 214 214 add_filter( 'upgrader_post_install', array( $this, 'active_after' ), 10, 2 ); 215 // There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins. 216 // 'source_selection' => array( $this, 'source_selection' ), 215 /* 216 * There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins. 217 * 'source_selection' => array( $this, 'source_selection' ), 218 */ 217 219 if ( $parsed_args['clear_update_cache'] ) { 218 220 // Clear cache so wp_update_plugins() knows about the new plugin. … … 253 255 wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); 254 256 255 // Ensure any future auto-update failures trigger a failure email by removing 256 // the last failure notification from the list when plugins update successfully. 257 /* 258 * Ensure any future auto-update failures trigger a failure email by removing 259 * the last failure notification from the list when plugins update successfully. 260 */ 257 261 $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); 258 262 … … 390 394 remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) ); 391 395 392 // Ensure any future auto-update failures trigger a failure email by removing 393 // the last failure notification from the list when plugins update successfully. 396 /* 397 * Ensure any future auto-update failures trigger a failure email by removing 398 * the last failure notification from the list when plugins update successfully. 399 */ 394 400 $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); 395 401 … … 652 658 } 653 659 654 // If plugin is in its own directory, recursively delete the directory. 655 // Base check on if plugin includes directory separator AND that it's not the root plugin folder. 660 /* 661 * If plugin is in its own directory, recursively delete the directory. 662 * Base check on if plugin includes directory separator AND that it's not the root plugin folder. 663 */ 656 664 if ( strpos( $plugin, '/' ) && $this_plugin_dir !== $plugins_dir ) { 657 665 $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
Note: See TracChangeset
for help on using the changeset viewer.