Skip to content

Commit 5b29b41

Browse files
committed
CS
1 parent 19a9328 commit 5b29b41

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

classes/update/class-update-190.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ private function cleanup_category_taxonomy() {
9292
// Remove term relationships.
9393
$placeholders = \implode( ',', \array_fill( 0, \count( $term_taxonomy_ids ), '%d' ) );
9494
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
95-
$wpdb->prepare(
96-
"DELETE FROM %i WHERE term_taxonomy_id IN ($placeholders)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $placeholders contains format specifiers
95+
$wpdb->prepare( // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $placeholders contains format specifiers.
96+
"DELETE FROM %i WHERE term_taxonomy_id IN ($placeholders)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
9797
$wpdb->term_relationships, // @phpstan-ignore-line property.nonObject
9898
...$term_taxonomy_ids
9999
)
@@ -119,8 +119,8 @@ private function cleanup_category_taxonomy() {
119119
if ( ! empty( $term_ids ) ) {
120120
$term_placeholders = \implode( ',', \array_fill( 0, \count( $term_ids ), '%d' ) );
121121
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
122-
$wpdb->prepare(
123-
"DELETE FROM %i WHERE term_id IN ($term_placeholders) AND term_id NOT IN (SELECT DISTINCT term_id FROM %i)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $term_placeholders contains format specifiers
122+
$wpdb->prepare( // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $term_placeholders contains format specifiers.
123+
"DELETE FROM %i WHERE term_id IN ($term_placeholders) AND term_id NOT IN (SELECT DISTINCT term_id FROM %i)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
124124
$wpdb->terms, // @phpstan-ignore-line property.nonObject
125125
$wpdb->term_taxonomy, // @phpstan-ignore-line property.nonObject
126126
...$term_ids
@@ -132,8 +132,8 @@ private function cleanup_category_taxonomy() {
132132
if ( ! empty( $term_ids ) ) {
133133
$term_placeholders = \implode( ',', \array_fill( 0, \count( $term_ids ), '%d' ) );
134134
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
135-
$wpdb->prepare(
136-
"DELETE FROM %i WHERE term_id IN ($term_placeholders) AND term_id NOT IN (SELECT DISTINCT term_id FROM %i)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $term_placeholders contains format specifiers
135+
$wpdb->prepare( // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $term_placeholders contains format specifiers.
136+
"DELETE FROM %i WHERE term_id IN ($term_placeholders) AND term_id NOT IN (SELECT DISTINCT term_id FROM %i)", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
137137
$wpdb->termmeta, // @phpstan-ignore-line property.nonObject
138138
$wpdb->terms, // @phpstan-ignore-line property.nonObject
139139
...$term_ids

0 commit comments

Comments
 (0)