HTML API: Fix a case where updates are overlooked when seeking to earlier locations.
This retains the WP_HTML_Tag_Processor attribute updates applied before calling seek() – they were erroneously erased in some cases. Props dmsnell. Fixes #58160. Built from https://develop.svn.wordpress.org/trunk@55675 git-svn-id: http://core.svn.wordpress.org/trunk@55187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1919350606
commit
8659101491
|
@ -2142,6 +2142,8 @@ class WP_HTML_Tag_Processor {
|
|||
* to the end of the updated document and return.
|
||||
*/
|
||||
if ( $requires_no_updating && $this->bytes_already_copied > 0 ) {
|
||||
$this->html = $this->output_buffer . substr( $this->html, $this->bytes_already_copied );
|
||||
$this->bytes_already_copied = strlen( $this->output_buffer );
|
||||
return $this->output_buffer . substr( $this->html, $this->bytes_already_copied );
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55674';
|
||||
$wp_version = '6.3-alpha-55675';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue