diff --git a/src/wp-includes/block-patterns.php b/src/wp-includes/block-patterns.php index 5c7fc59f89..6f18672505 100644 --- a/src/wp-includes/block-patterns.php +++ b/src/wp-includes/block-patterns.php @@ -468,10 +468,10 @@ function _register_theme_block_patterns() { // Translate the pattern metadata. $text_domain = $theme->get( 'TextDomain' ); - // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain,WordPress.WP.I18n.LowLevelTranslationFunction $pattern_data['title'] = translate_with_gettext_context( $pattern_data['title'], 'Pattern title', $text_domain ); if ( ! empty( $pattern_data['description'] ) ) { - // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain,WordPress.WP.I18n.LowLevelTranslationFunction $pattern_data['description'] = translate_with_gettext_context( $pattern_data['description'], 'Pattern description', $text_domain ); } diff --git a/src/wp-includes/canonical.php b/src/wp-includes/canonical.php index 4913613084..040567fd0e 100644 --- a/src/wp-includes/canonical.php +++ b/src/wp-includes/canonical.php @@ -957,7 +957,6 @@ function redirect_guess_404_permalink() { // If any of post_type, year, monthnum, or day are set, use them to refine the query. if ( get_query_var( 'post_type' ) ) { if ( is_array( get_query_var( 'post_type' ) ) ) { - // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare $where .= " AND post_type IN ('" . join( "', '", esc_sql( get_query_var( 'post_type' ) ) ) . "')"; } else { $where .= $wpdb->prepare( ' AND post_type = %s', get_query_var( 'post_type' ) ); diff --git a/tests/phpunit/tests/db/dbDelta.php b/tests/phpunit/tests/db/dbDelta.php index 899f85c5d6..b28905749c 100644 --- a/tests/phpunit/tests/db/dbDelta.php +++ b/tests/phpunit/tests/db/dbDelta.php @@ -68,7 +68,6 @@ class Tests_DB_dbDelta extends WP_UnitTestCase { $wpdb->prepare( " CREATE TABLE {$wpdb->prefix}dbdelta_test (" . - // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 'id bigint(20) NOT NULL AUTO_INCREMENT, column_1 varchar(255) NOT NULL, column_2 text, diff --git a/tests/phpunit/tests/import/import.php b/tests/phpunit/tests/import/import.php index 2162824e96..a46398392d 100644 --- a/tests/phpunit/tests/import/import.php +++ b/tests/phpunit/tests/import/import.php @@ -28,7 +28,6 @@ class Tests_Import_Import extends WP_Import_UnitTestCase { global $wpdb; // Crude but effective: make sure there's no residual data in the main tables. foreach ( array( 'posts', 'postmeta', 'comments', 'terms', 'term_taxonomy', 'term_relationships', 'users', 'usermeta' ) as $table ) { - // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DELETE FROM {$wpdb->$table}" ); } }