diff --git a/includes/promoted-jobs/class-wp-job-manager-promoted-jobs-api.php b/includes/promoted-jobs/class-wp-job-manager-promoted-jobs-api.php index 2bc251290..b003d5c60 100644 --- a/includes/promoted-jobs/class-wp-job-manager-promoted-jobs-api.php +++ b/includes/promoted-jobs/class-wp-job-manager-promoted-jobs-api.php @@ -187,7 +187,7 @@ public function get_items() { 'no_found_rows' => true, 'ignore_sticky_posts' => true, 'posts_per_page' => -1, - 'meta_query' => [ + 'meta_query' => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Returns promoted jobs only which should be a small number. [ 'key' => WP_Job_Manager_Promoted_Jobs::PROMOTED_META_KEY, 'compare' => 'EXISTS', diff --git a/includes/promoted-jobs/class-wp-job-manager-promoted-jobs.php b/includes/promoted-jobs/class-wp-job-manager-promoted-jobs.php index b2281f388..58cb72201 100644 --- a/includes/promoted-jobs/class-wp-job-manager-promoted-jobs.php +++ b/includes/promoted-jobs/class-wp-job-manager-promoted-jobs.php @@ -213,7 +213,7 @@ public static function query_promoted_jobs_count( $args = [] ) { 'post_status' => 'any', 'posts_per_page' => 1, 'fields' => 'ids', - 'meta_query' => [ + 'meta_query' => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Returns promoted jobs only which should be a small number. [ 'key' => self::PROMOTED_META_KEY, 'value' => '1',