Skip to content

Commit

Permalink
use login_enqueue_scripts instead of login_head
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo committed Apr 19, 2014
1 parent 285bdc3 commit 1c47836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media.php
Expand Up @@ -13,7 +13,7 @@ function sc_add_stylesheets(){
wp_enqueue_style( "wp-jquery-ui-dialog" );
}
}
add_action( 'login_head', 'sc_add_stylesheets' );
add_action( 'login_enqueue_scripts', 'sc_add_stylesheets' );
add_action( 'wp_head', 'sc_add_stylesheets' );


Expand Down Expand Up @@ -45,5 +45,5 @@ function sc_add_javascripts(){
wp_enqueue_script( 'social_connect' );
wp_localize_script( 'social_connect', 'social_connect_data', array( 'wordpress_enabled' => $wordpress_enabled ) );
}
add_action( 'login_head', 'sc_add_javascripts' );
add_action( 'login_enqueue_scripts', 'sc_add_javascripts' );
add_action( 'wp_enqueue_scripts', 'sc_add_javascripts' );

0 comments on commit 1c47836

Please sign in to comment.