WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/09/2020 12:53:29 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison and Yoda conditions in the root directory files.

Props pikamander2.
Fixes #48965.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r46733 r47054  
    106106 * must match $doing_wp_cron (the "key").
    107107 */
    108 if ( $doing_cron_transient != $doing_wp_cron ) {
     108if ( $doing_cron_transient !== $doing_wp_cron ) {
    109109    return;
    110110}
     
    139139
    140140            // If the hook ran too long and another cron process stole the lock, quit.
    141             if ( _get_cron_lock() != $doing_wp_cron ) {
     141            if ( _get_cron_lock() !== $doing_wp_cron ) {
    142142                return;
    143143            }
     
    146146}
    147147
    148 if ( _get_cron_lock() == $doing_wp_cron ) {
     148if ( _get_cron_lock() === $doing_wp_cron ) {
    149149    delete_transient( 'doing_cron' );
    150150}
Note: See TracChangeset for help on using the changeset viewer.