Changeset 55988 for trunk/src/wp-admin/includes/class-core-upgrader.php
- Timestamp:
- 06/22/2023 02:34:56 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-core-upgrader.php
r55911 r55988 182 182 * do_rollback allows for update_core() to trigger a rollback if needed. 183 183 */ 184 if ( false !== strpos( $error_code, 'do_rollback' ) ) {184 if ( str_contains( $error_code, 'do_rollback' ) ) { 185 185 $try_rollback = true; 186 } elseif ( false !== strpos( $error_code, '__copy_dir' ) ) {186 } elseif ( str_contains( $error_code, '__copy_dir' ) ) { 187 187 $try_rollback = true; 188 188 } elseif ( 'disk_full' === $error_code ) { … … 324 324 325 325 // Don't claim we can update on update-core.php if we have a non-critical failure logged. 326 if ( $wp_version === $failure_data['current'] && false !== strpos( $offered_ver, '.1.next.minor' ) ) {326 if ( $wp_version === $failure_data['current'] && str_contains( $offered_ver, '.1.next.minor' ) ) { 327 327 return false; 328 328 }
Note: See TracChangeset
for help on using the changeset viewer.