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

    r57750 r60235  
    30023002     */
    30033003    public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_ASC() {
    3004         $now      = current_time( 'mysql', 1 );
     3004        $now      = current_time( 'mysql', true );
    30053005        $comments = self::factory()->comment->create_many(
    30063006            5,
     
    30293029     */
    30303030    public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_DESC() {
    3031         $now      = current_time( 'mysql', 1 );
     3031        $now      = current_time( 'mysql', true );
    30323032        $comments = self::factory()->comment->create_many(
    30333033            5,
Note: See TracChangeset for help on using the changeset viewer.