Changeset 56472
- Timestamp:
- 08/25/2023 05:09:09 AM (16 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-patterns.php
r56063 r56472 469 469 // Translate the pattern metadata. 470 470 $text_domain = $theme->get( 'TextDomain' ); 471 // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction471 // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction 472 472 $pattern_data['title'] = translate_with_gettext_context( $pattern_data['title'], 'Pattern title', $text_domain ); 473 473 if ( ! empty( $pattern_data['description'] ) ) { 474 // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction474 // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction 475 475 $pattern_data['description'] = translate_with_gettext_context( $pattern_data['description'], 'Pattern description', $text_domain ); 476 476 } -
trunk/src/wp-includes/functions.php
r56471 r56472 5145 5145 preg_match_all( $regexp, str_replace( "'", '', $input_string ), $matches ); 5146 5146 return strtolower( implode( '-', $matches[0] ) ); 5147 // phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase5147 // phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase 5148 5148 } 5149 5149 -
trunk/tests/phpunit/includes/functions.php
r55025 r56472 119 119 $wpdb->termmeta, 120 120 ) as $table ) { 121 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared121 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 122 122 $wpdb->query( "DELETE FROM {$table}" ); 123 123 } … … 127 127 $wpdb->term_taxonomy, 128 128 ) as $table ) { 129 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared129 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 130 130 $wpdb->query( "DELETE FROM {$table} WHERE term_id != 1" ); 131 131 } -
trunk/tests/phpunit/includes/install.php
r54872 r56472 65 65 $wpdb->query( 'SET foreign_key_checks = 0' ); 66 66 foreach ( $wpdb->tables() as $table => $prefixed_table ) { 67 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared67 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 68 68 $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" ); 69 69 } 70 70 71 71 foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) { 72 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared72 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 73 73 $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" ); 74 74 -
trunk/tests/phpunit/includes/testcase-xml.php
r50283 r56472 70 70 */ 71 71 public function assertXMLEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase 72 $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase72 $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase 73 73 } 74 74 … … 87 87 * @param string $message Optional. Message to display when the assertion fails. 88 88 */ 89 public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase90 $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase89 public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase 90 $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase 91 91 } 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.