[wp-trac] [WordPress Trac] #63413: Unused global variables declared in wp_enqueue_registered_block_scripts_and_styles
WordPress Trac
noreply at wordpress.org
Thu May 8 08:24:12 UTC 2025
#63413: Unused global variables declared in
wp_enqueue_registered_block_scripts_and_styles
-------------------------------------------+-------------------------------
Reporter: umesh.nevase | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.8
Severity: normal | Keywords: has-patch needs-
Focuses: performance, coding-standards | testing
-------------------------------------------+-------------------------------
We should remove the unused global variables if it is not required because
opcode and parsing overhead. I could not find any use of the global
variables in the function and also no other code is depends on it.
I found this while enqueuing assets for my theme in wp-includes/script-
loader.php at wp_enqueue_registered_block_scripts_and_styles()
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63413>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list