Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change wp_print_scripts to wp_enqueue_scripts #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions busted.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ static public function init(){

/**
* PHP_INT_MAX - 1 used as hook priority because many developers
* use wp_print_scripts for enqueues.
* use wp_enqueue_scripts for enqueues.
*
* Extremely high priority assures we catch everything.
*/
add_action( 'wp_print_scripts', __CLASS__ . '::wp_print_scripts', PHP_INT_MAX - 1 );
add_action( 'wp_enqueue_scripts', __CLASS__ . '::wp_enqueue_scripts', PHP_INT_MAX - 1 );

add_filter( 'stylesheet_uri', __CLASS__ . '::stylesheet_uri' );
add_filter( 'locale_stylesheet_uri', __CLASS__ . '::stylesheet_uri' );
Expand All @@ -47,7 +47,7 @@ static public function init(){
*
* @return void
*/
static public function wp_print_scripts() {
static public function wp_enqueue_scripts() {

global $wp_scripts, $wp_styles;

Expand All @@ -70,7 +70,7 @@ static public function wp_print_scripts() {
}

/**
* wp_print_scripts runs in header in footer and when called.
* wp_enqueue_scripts runs in header in footer and when called.
* Only run this modification once.
*/
$enqueue_list->__busted_filtered = true;
Expand Down