- Timestamp:
- 08/21/2024 10:21:54 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php
r56695 r58921 225 225 226 226 $check_dirs = array_unique( $check_dirs ); 227 $updater = new WP_Automatic_Updater(); 228 $checkout = false; 227 229 228 230 // Search all directories we've found for evidence of version control. 229 231 foreach ( $vcs_dirs as $vcs_dir ) { 230 232 foreach ( $check_dirs as $check_dir ) { 231 // phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition,Squiz.PHP.DisallowMultipleAssignments 232 if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) { 233 if ( ! $updater->is_allowed_dir( $check_dir ) ) { 234 continue; 235 } 236 237 $checkout = is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ); 238 if ( $checkout ) { 233 239 break 2; 234 240 }
Note: See TracChangeset
for help on using the changeset viewer.