- Timestamp:
- 06/22/2023 02:34:56 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r55911 r55988 583 583 // Send debugging email to admin for all development installations. 584 584 if ( ! empty( $this->update_results ) ) { 585 $development_version = false !== strpos( get_bloginfo( 'version' ), '-' );585 $development_version = str_contains( get_bloginfo( 'version' ), '-' ); 586 586 587 587 /** … … 641 641 // We should not try to perform a background update again until there is a successful one-click update performed by the user. 642 642 $critical = false; 643 if ( 'disk_full' === $error_code || false !== strpos( $error_code, '__copy_dir' ) ) {643 if ( 'disk_full' === $error_code || str_contains( $error_code, '__copy_dir' ) ) { 644 644 $critical = true; 645 645 } elseif ( 'rollback_was_required' === $error_code && is_wp_error( $result->get_error_data()->rollback ) ) { … … 647 647 $critical = true; 648 648 $rollback_result = $result->get_error_data()->rollback; 649 } elseif ( false !== strpos( $error_code, 'do_rollback' ) ) {649 } elseif ( str_contains( $error_code, 'do_rollback' ) ) { 650 650 $critical = true; 651 651 }
Note: See TracChangeset
for help on using the changeset viewer.