HTML API: Fix the position update after changing the modifiable text when length differs
There was an edge case detected for updating the text placed without the wrapping HTML tag with `set_modifiable_text`. Props gziolo, jonsurrell. Fixes #62241. Built from https://develop.svn.wordpress.org/trunk@59250 git-svn-id: http://core.svn.wordpress.org/trunk@58642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4bc546e7f5
commit
a923a561ca
|
@ -2459,7 +2459,7 @@ class WP_HTML_Tag_Processor {
|
|||
}
|
||||
|
||||
// Accumulate shift of the given pointer within this function call.
|
||||
if ( $diff->start <= $shift_this_point ) {
|
||||
if ( $diff->start < $shift_this_point ) {
|
||||
$accumulated_shift_for_given_point += $shift;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-beta3-59249';
|
||||
$wp_version = '6.7-beta3-59250';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue