Compare commits
2 Commits
9d5f8481df
...
a3f1555919
Author | SHA1 | Date |
---|---|---|
Bernhard Reiter | a3f1555919 | |
dmsnell | f9776f536f |
|
@ -729,7 +729,7 @@ function _wp_build_title_and_description_for_taxonomy_block_template( $taxonomy,
|
||||||
* It is self-sufficient in that it only uses information passed as arguments; it does not
|
* It is self-sufficient in that it only uses information passed as arguments; it does not
|
||||||
* query the database for additional information.
|
* query the database for additional information.
|
||||||
*
|
*
|
||||||
* @since 6.5.1
|
* @since 6.5.3
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Template post.
|
* @param WP_Post $post Template post.
|
||||||
|
@ -1505,7 +1505,7 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '
|
||||||
*/
|
*/
|
||||||
function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated = null ) {
|
function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated = null ) {
|
||||||
if ( null !== $deprecated ) {
|
if ( null !== $deprecated ) {
|
||||||
_deprecated_argument( __FUNCTION__, '6.5.1' );
|
_deprecated_argument( __FUNCTION__, '6.5.3' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$hooked_blocks = get_hooked_blocks();
|
$hooked_blocks = get_hooked_blocks();
|
||||||
|
|
|
@ -1629,7 +1629,7 @@ class WP_HTML_Tag_Processor {
|
||||||
* `<!` transitions to markup declaration open state
|
* `<!` transitions to markup declaration open state
|
||||||
* https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
|
* https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
|
||||||
*/
|
*/
|
||||||
if ( '!' === $html[ $at + 1 ] ) {
|
if ( ! $this->is_closing_tag && '!' === $html[ $at + 1 ] ) {
|
||||||
/*
|
/*
|
||||||
* `<!--` transitions to a comment state – apply further comment rules.
|
* `<!--` transitions to a comment state – apply further comment rules.
|
||||||
* https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
* https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
||||||
|
@ -1809,6 +1809,12 @@ class WP_HTML_Tag_Processor {
|
||||||
* See https://html.spec.whatwg.org/#parse-error-missing-end-tag-name
|
* See https://html.spec.whatwg.org/#parse-error-missing-end-tag-name
|
||||||
*/
|
*/
|
||||||
if ( '>' === $html[ $at + 1 ] ) {
|
if ( '>' === $html[ $at + 1 ] ) {
|
||||||
|
// `<>` is interpreted as plaintext.
|
||||||
|
if ( ! $this->is_closing_tag ) {
|
||||||
|
++$at;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$this->parser_state = self::STATE_PRESUMPTUOUS_TAG;
|
$this->parser_state = self::STATE_PRESUMPTUOUS_TAG;
|
||||||
$this->token_length = $at + 2 - $this->token_starts_at;
|
$this->token_length = $at + 2 - $this->token_starts_at;
|
||||||
$this->bytes_already_parsed = $at + 2;
|
$this->bytes_already_parsed = $at + 2;
|
||||||
|
@ -1819,7 +1825,7 @@ class WP_HTML_Tag_Processor {
|
||||||
* `<?` transitions to a bogus comment state – skip to the nearest >
|
* `<?` transitions to a bogus comment state – skip to the nearest >
|
||||||
* See https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
* See https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
||||||
*/
|
*/
|
||||||
if ( '?' === $html[ $at + 1 ] ) {
|
if ( ! $this->is_closing_tag && '?' === $html[ $at + 1 ] ) {
|
||||||
$closer_at = strpos( $html, '>', $at + 2 );
|
$closer_at = strpos( $html, '>', $at + 2 );
|
||||||
if ( false === $closer_at ) {
|
if ( false === $closer_at ) {
|
||||||
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
|
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
|
||||||
|
@ -1891,7 +1897,7 @@ class WP_HTML_Tag_Processor {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$closer_at = strpos( $html, '>', $at + 3 );
|
$closer_at = strpos( $html, '>', $at + 2 );
|
||||||
if ( false === $closer_at ) {
|
if ( false === $closer_at ) {
|
||||||
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
|
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-58039';
|
$wp_version = '6.6-alpha-58042';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue