Skip to content

Commit 900e248

Browse files
committed
Set a11y_available = false on clone
This value is set and accessed in the printing flow and should be reset
1 parent 9531dd9 commit 900e248

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/wp-includes/class-wp-script-modules.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,11 @@ public function print_a11y_script_module_html() {
950950
. '</div>';
951951
}
952952

953-
public function clone_without_enqueued_modules(): WP_Script_Modules {
954-
$clone = clone $this;
955-
$clone->queue = array();
956-
$clone->done = array();
953+
public function clone_without_enqueued_modules(): self {
954+
$clone = clone $this;
955+
$clone->queue = array();
956+
$clone->done = array();
957+
$clone->a11y_available = false;
957958
return $clone;
958959
}
959960
}

0 commit comments

Comments
 (0)