Skip to content

Commit b3b4562

Browse files
committed
Fix interactivity
1 parent b7b2876 commit b3b4562

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function append_content_after_template_tag_closer( string $new_content ):
107107

108108
$bookmark = 'append_content_after_template_tag_closer';
109109
$this->set_bookmark( $bookmark );
110-
$after_closing_tag = $this->bookmarks[ $bookmark ]->start + $this->bookmarks[ $bookmark ]->length + 1;
110+
$after_closing_tag = $this->bookmarks[ $bookmark ]->start + $this->bookmarks[ $bookmark ]->length;
111111
$this->release_bookmark( $bookmark );
112112

113113
// Appends the new content.
@@ -140,7 +140,7 @@ private function get_after_opener_tag_and_before_closer_tag_positions( bool $rew
140140
}
141141
list( $opener_tag, $closer_tag ) = $bookmarks;
142142

143-
$after_opener_tag = $this->bookmarks[ $opener_tag ]->start + $this->bookmarks[ $opener_tag ]->length + 1;
143+
$after_opener_tag = $this->bookmarks[ $opener_tag ]->start + $this->bookmarks[ $opener_tag ]->length;
144144
$before_closer_tag = $this->bookmarks[ $closer_tag ]->start;
145145

146146
if ( $rewind ) {

0 commit comments

Comments
 (0)