Skip to content

Commit e4d1356

Browse files
authored
Merge pull request #1159 from 10up/dependabot/composer/wp-coding-standards/wpcs-3.4.1
fix(deps-dev): bump wp-coding-standards/wpcs from 3.3.0 to 3.4.1
2 parents efe52c6 + 06ce2d2 commit e4d1356

5 files changed

Lines changed: 26 additions & 26 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"phpstan/phpstan": "^2.1.55",
3838
"sirbrillig/phpcs-changed": "^2.12.0",
3939
"szepeviktor/phpstan-wordpress": "^2.0.3",
40-
"wp-coding-standards/wpcs": "^3.3.0",
40+
"wp-coding-standards/wpcs": "^3.4.1",
4141
"wp-phpunit/wp-phpunit": "^7.0",
4242
"yoast/phpunit-polyfills": "^4.0"
4343
},

composer.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/Classifai/Command/ClassifaiCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ private function get_posts_to_classify( $opts = array() ) {
12801280
'post_type' => ! empty( $opts['post_type'] ) ? $opts['post_type'] : 'any',
12811281
'post_status' => 'publish',
12821282
'fields' => 'ids',
1283-
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page
1283+
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page, WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page
12841284
);
12851285

12861286
\WP_CLI::log( 'Fetching posts to classify ...' );

includes/Classifai/Providers/Localhost/OllamaEmbeddings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function regenerate_embeddings() {
385385
$embedding_posts = get_posts(
386386
array(
387387
'post_type' => 'any',
388-
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page
388+
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page, WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page
389389
'fields' => 'ids',
390390
'meta_key' => 'classifai_ollama_embeddings', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key
391391
'meta_compare' => 'EXISTS',

includes/Classifai/Providers/OpenAI/Embeddings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public function regenerate_embeddings() {
491491
$embedding_posts = get_posts(
492492
array(
493493
'post_type' => 'any',
494-
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page
494+
'posts_per_page' => -1, // phpcs:ignore WordPress.WP.PostsPerPageNoUnlimited.posts_per_page_posts_per_page, WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page
495495
'fields' => 'ids',
496496
'meta_key' => 'classifai_openai_embeddings', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key
497497
'meta_compare' => 'EXISTS',

0 commit comments

Comments
 (0)