Make WordPress Core

Changeset 56568


Ignore:
Timestamp:
09/13/2023 08:50:17 PM (7 months ago)
Author:
flixos90
Message:

General: Update wp_register_script() calls in core to use new function signature.

Since most core scripts are registered using WP_Scripts::add(), which is not affected by the signature change, only calls to wp_register_script() using the old signature need to be updated. There is only a single instance left, which is updated in this changeset.

Props incursadesigns.
Fixes #58634.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r56559 r56568  
    27182718    $inline_script           = implode( "\n", $register_script_lines );
    27192719
    2720     wp_register_script( 'wp-block-styles', false, array( 'wp-blocks' ), true, true );
     2720    wp_register_script( 'wp-block-styles', false, array( 'wp-blocks' ), true, array( 'in_footer' => true ) );
    27212721    wp_add_inline_script( 'wp-block-styles', $inline_script );
    27222722    wp_enqueue_script( 'wp-block-styles' );
Note: See TracChangeset for help on using the changeset viewer.