WordPress.org

Make WordPress Core

Ticket #53359: 53359-11-CS-make-an-annotation-more-specific.patch

File 53359-11-CS-make-an-annotation-more-specific.patch, 1.1 KB (added by jrf, 2 months ago)
  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

    From 64fc129adb3c46716c0b253a67f93c8eb7ab32fe Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 17:58:34 +0200
    Subject: [PATCH] CS: make an annotation more specific
    
    ---
     src/wp-admin/includes/class-wp-site-health-auto-updates.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
    index d1c133524d..256c8dcf8a 100644
    a b class WP_Site_Health_Auto_Updates { 
    226226                // Search all directories we've found for evidence of version control.
    227227                foreach ( $vcs_dirs as $vcs_dir ) {
    228228                        foreach ( $check_dirs as $check_dir ) {
    229                                 // phpcs:ignore
     229                                // phpcs:ignore WordPress.CodeAnalysis.AssignmentInCondition,Squiz.PHP.DisallowMultipleAssignments
    230230                                if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) {
    231231                                        break 2;
    232232                                }