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/class-wp-xmlrpc-server.php

    r60175 r60235  
    51535153
    51545154        $post_date     = current_time( 'mysql' );
    5155         $post_date_gmt = current_time( 'mysql', 1 );
     5155        $post_date_gmt = current_time( 'mysql', true );
    51565156
    51575157        $post_data = compact(
Note: See TracChangeset for help on using the changeset viewer.