Skip to content

Commit

Permalink
Change conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jun 20, 2024
1 parent 193fdcf commit e54b30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.6/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function gutenberg_set_inner_text( $new_content ) {
* This check is needed to add compatibility for that.
* Related issue: https://github.com/WordPress/wordpress-develop/pull/6625
*/
if ( '>' === $this->html[ $after_opener_tag ] ) {
if ( '>' !== $this->html[ $after_opener_tag - 1 ] ) {
++$after_opener_tag;
}
$inner_content_length = $closer_tag_bookmark->start - $after_opener_tag;
Expand Down

0 comments on commit e54b30f

Please sign in to comment.