Make WordPress Core


Ignore:
Timestamp:
05/14/2025 11:57:21 AM (8 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-includes/post.php

    r60102 r60235  
    46244624    if ( $update || '0000-00-00 00:00:00' === $post_date ) {
    46254625        $post_modified     = current_time( 'mysql' );
    4626         $post_modified_gmt = current_time( 'mysql', 1 );
     4626        $post_modified_gmt = current_time( 'mysql', true );
    46274627    } else {
    46284628        $post_modified     = $post_date;
Note: See TracChangeset for help on using the changeset viewer.