Summery Summery
Reorder JavaScript scripts array to place prototype before jQuery.
Syntax Syntax
Parameters Parameters
- $js_array
-
(Required) JavaScript scripts array
Return Return
(array) Reordered array, if needed.
Source Source
File: wp-includes/script-loader.php
/** * Prints the scripts that were queued for the footer or too late for the HTML head. * * @since 2.8.0 * * @global WP_Scripts $wp_scripts * @global bool $concatenate_scripts * * @return array */ function print_footer_scripts() { global $wp_scripts, $concatenate_scripts; if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { return array(); // No need to run if not instantiated. } script_concat_settings(); $wp_scripts->do_concat = $concatenate_scripts; $wp_scripts->do_footer_items(); /** * Filters whether to print the footer scripts. *
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.3.1 | Introduced. |