We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fca13 commit 54214b4Copy full SHA for 54214b4
src/wp-includes/class-wp-script-modules.php
@@ -950,6 +950,16 @@ public function print_a11y_script_module_html() {
950
. '</div>';
951
}
952
953
+ /**
954
+ * Creates a clone of the instance without enqueued modules.
955
+ *
956
+ * This method creates a copy of the current instance without any
957
+ * state related to enqueued or printed modules.
958
959
+ * @since 7.0.0
960
961
+ * @return WP_Script_Modules A new instance.
962
+ */
963
public function clone_without_enqueued_modules(): self {
964
$clone = clone $this;
965
$clone->queue = array();
0 commit comments