Make WordPress Core


Ignore:
Timestamp:
06/07/2024 12:27:59 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/post.php.

Follow-up to [2718], [7103], [7338], [8857], [9036], [9103], [11807], [11908], [15315], [16901], [17078], [23725], [23735], [44141], [45583].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPost.php

    r58174 r58360  
    241241        $request = array(
    242242            'post_type'      => 'post',
    243             'post_author'    => -1,
    244             'ping_status'    => -1,
    245             'comment_status' => -1,
    246             '_status'        => -1,
     243            'post_author'    => '-1',
     244            'ping_status'    => '-1',
     245            'comment_status' => '-1',
     246            '_status'        => '-1',
    247247            'post'           => array( $post1, $post2 ),
    248248        );
     
    274274
    275275        $request = array(
    276             'post_format' => -1, // Don't change the post format.
    277             '_status'     => -1,
     276            'post_format' => '-1', // Don't change the post format.
     277            '_status'     => '-1',
    278278            'post'        => $post_ids,
    279279        );
     
    368368        $request = array(
    369369            'post_format' => 'aside',
    370             '_status'     => -1,
     370            '_status'     => '-1',
    371371            'post'        => array( self::$post_id ),
    372372        );
Note: See TracChangeset for help on using the changeset viewer.