diff --git a/wp-includes/Text/Diff.php b/wp-includes/Text/Diff.php index eee4e4f8ea..b3c63afc5f 100644 --- a/wp-includes/Text/Diff.php +++ b/wp-includes/Text/Diff.php @@ -276,7 +276,7 @@ class Text_Diff { $prevtype = null; foreach ($this->_edits as $edit) { - if ($edit instanceof $prevtype) { + if ($prevtype !== null && $edit instanceof $prevtype) { trigger_error("Edit sequence is non-optimal", E_USER_ERROR); } $prevtype = get_class($edit); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6a9c543157..114c76a8d8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59069'; +$wp_version = '6.7-alpha-59070'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.