Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/privacy-tools.php

    r47150 r47219  
    695695        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    696696        $exporters        = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    697         $is_last_exporter = $exporter_index === count( $exporters );
     697        $is_last_exporter = count( $exporters ) === $exporter_index;
    698698        $exporter_done    = $response['done'];
    699699        if ( ! $is_last_exporter || ! $exporter_done ) {
Note: See TracChangeset for help on using the changeset viewer.