Make WordPress Core

Ticket #53359: 53359-7-CS-add-ignore-comment.patch

File 53359-7-CS-add-ignore-comment.patch, 838 bytes (added by jrf, 23 months ago)
  • src/wp-includes/functions.php

    From f86ec815c744d5712998b2589f5e087104c6b4a4 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 15:38:34 +0200
    Subject: [PATCH] CS: add ignore comment
    
    ---
     src/wp-includes/functions.php | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 55282b18df..2b75cfea03 100644
    a b function date_i18n( $format, $timestamp_with_offset = false, $gmt = false ) { 
    167167
    168168        // If timestamp is omitted it should be current time (summed with offset, unless `$gmt` is true).
    169169        if ( ! is_numeric( $timestamp ) ) {
     170                // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
    170171                $timestamp = current_time( 'timestamp', $gmt );
    171172        }
    172173