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/comment.php

    r59975 r60235  
    23202320
    23212321    if ( empty( $commentdata['comment_date_gmt'] ) ) {
    2322         $commentdata['comment_date_gmt'] = current_time( 'mysql', 1 );
     2322        $commentdata['comment_date_gmt'] = current_time( 'mysql', true );
    23232323    }
    23242324
Note: See TracChangeset for help on using the changeset viewer.