summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-admin/includes/privacy-tools.php
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2020-02-09 16:52:28 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2020-02-09 16:52:28 +0000
commit130751cda30fd9a53a7378120ff51d4abea0cf5d (patch)
tree9b4b1bb9f59c92b06299dad6f0bc5ed2e76849e8 /src/wp-admin/includes/privacy-tools.php
parent40ffe0ef06b80b0a003c163392820585654e8836 (diff)
downloadwordpress-130751cda30fd9a53a7378120ff51d4abea0cf5d.tar.gz
wordpress-130751cda30fd9a53a7378120ff51d4abea0cf5d.zip
Coding Standards: Use Yoda conditions where appropriate.
See #49222. git-svn-id: https://develop.svn.wordpress.org/trunk@47219 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-admin/includes/privacy-tools.php')
-rw-r--r--src/wp-admin/includes/privacy-tools.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wp-admin/includes/privacy-tools.php b/src/wp-admin/includes/privacy-tools.php
index c871a1a8e5..bb8a0be8a2 100644
--- a/src/wp-admin/includes/privacy-tools.php
+++ b/src/wp-admin/includes/privacy-tools.php
@@ -694,7 +694,7 @@ function wp_privacy_process_personal_data_export_page( $response, $exporter_inde
// If we are not yet on the last page of the last exporter, return now.
/** This filter is documented in wp-admin/includes/ajax-actions.php */
$exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() );
- $is_last_exporter = $exporter_index === count( $exporters );
+ $is_last_exporter = count( $exporters ) === $exporter_index;
$exporter_done = $response['done'];
if ( ! $is_last_exporter || ! $exporter_done ) {
return $response;