diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index cb581fac39..0ca7a52a2a 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -2770,6 +2770,10 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { } } } + + $this->bail( 'Should not have been able to reach end of IN BODY processing. Check HTML API code.' ); + // This unnecessary return prevents tools from inaccurately reporting type errors. + return false; } /** @@ -4645,6 +4649,10 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { $this->bail( "Unaware of the requested parsing mode: '{$this->state->insertion_mode}'." ); } } + + $this->bail( 'Should not have been able to reach end of IN FOREIGN CONTENT processing. Check HTML API code.' ); + // This unnecessary return prevents tools from inaccurately reporting type errors. + return false; } /* @@ -5878,6 +5886,10 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { ) ); } + + $this->bail( 'Should not have reached end of HTML Integration Point detection: check HTML API code.' ); + // This unnecessary return prevents tools from inaccurately reporting type errors. + return false; } /** diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php index 1ea8066d97..233d47eb8d 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -2965,6 +2965,9 @@ class WP_HTML_Tag_Processor { return $lower_tag_name; } } + + // This unnecessary return prevents tools from inaccurately reporting type errors. + return $tag_name; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 0cdbae15a0..dab06f6b22 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59000'; +$wp_version = '6.7-alpha-59001'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.