- Timestamp:
- 07/09/2023 07:50:52 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r56124 r56174 471 471 || 'locked' === $upgrade_result->get_error_code() ) 472 472 ) { 473 // These aren't actual errors, treat it as a skipped-update instead 474 // to avoid triggering the post-core update failure routines. 473 /* 474 * These aren't actual errors, treat it as a skipped-update instead 475 * to avoid triggering the post-core update failure routines. 476 */ 475 477 return false; 476 478 } … … 549 551 } 550 552 551 // Clean up, and check for any pending translations. 552 // (Core_Upgrader checks for core updates.) 553 /* 554 * Clean up, and check for any pending translations. 555 * (Core_Upgrader checks for core updates.) 556 */ 553 557 $theme_stats = array(); 554 558 if ( isset( $this->update_results['theme'] ) ) { … … 639 643 $error_code = $result->get_error_code(); 640 644 641 // Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files. 642 // We should not try to perform a background update again until there is a successful one-click update performed by the user. 645 /* 646 * Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files. 647 * We should not try to perform a background update again until there is a successful one-click update performed by the user. 648 */ 643 649 $critical = false; 644 650 if ( 'disk_full' === $error_code || str_contains( $error_code, '__copy_dir' ) ) { … … 832 838 $body .= "\n\n"; 833 839 834 // Don't show this message if there is a newer version available. 835 // Potential for confusion, and also not useful for them to know at this point. 840 /* 841 * Don't show this message if there is a newer version available. 842 * Potential for confusion, and also not useful for them to know at this point. 843 */ 836 844 if ( 'fail' === $type && ! $newer_version_available ) { 837 845 $body .= __( 'An attempt was made, but your site could not be updated automatically.' ) . ' '; … … 904 912 $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); 905 913 906 // If we had a rollback and we're still critical, then the rollback failed too. 907 // Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc. 914 /* 915 * If we had a rollback and we're still critical, then the rollback failed too. 916 * Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc. 917 */ 908 918 if ( 'rollback_was_required' === $result->get_error_code() ) { 909 919 $errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback );
Note: See TracChangeset
for help on using the changeset viewer.