Skip to content

Commit 3410f40

Browse files
committed
Make sure we're not stopped on atomic/void/self-closing element
1 parent a18e435 commit 3410f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ private static function get_block_bindings_processor( string $block_content ) {
473473
* @return bool True on success.
474474
*/
475475
public function replace_rich_text( $rich_text ) {
476-
if ( $this->is_tag_closer() ) {
476+
if ( $this->is_tag_closer() || ! $this->expects_closer() ) {
477477
return false;
478478
}
479479

0 commit comments

Comments
 (0)