Skip to content

Commit 02d07b1

Browse files
Script Loader: Remove unused global when enqueuing block scripts and styles.
Follow-up to [44164], [49080], [49093], [50836], [50919], [59823]. Props umesh.nevase, b1ink0, mukesh27. Fixes #63413. git-svn-id: https://develop.svn.wordpress.org/trunk@60230 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2836be6 commit 02d07b1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wp-includes/script-loader.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,12 +2679,8 @@ function wp_should_load_block_assets_on_demand() {
26792679
* context (only enqueuing editor scripts while in context of the editor).
26802680
*
26812681
* @since 5.0.0
2682-
*
2683-
* @global WP_Screen $current_screen WordPress current screen object.
26842682
*/
26852683
function wp_enqueue_registered_block_scripts_and_styles() {
2686-
global $current_screen;
2687-
26882684
if ( wp_should_load_block_assets_on_demand() ) {
26892685
return;
26902686
}

0 commit comments

Comments
 (0)