Make WordPress Core


Ignore:
Timestamp:
05/14/2025 11:57:21 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Pass true instead of 1 to current_time() for consistency.

This matches the documented type of bool for the $gmt parameter.

Follow-up to [60119].

Props johnbillion, dilipbheda.
Fixes #63207.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r60111 r60235  
    209209        // First post.
    210210        $now             = current_time( 'mysql' );
    211         $now_gmt         = current_time( 'mysql', 1 );
     211        $now_gmt         = current_time( 'mysql', true );
    212212        $first_post_guid = get_option( 'home' ) . '/?p=1';
    213213
Note: See TracChangeset for help on using the changeset viewer.