Permalink
Browse files

load scripts at better times to play nicely with other plugins

  • Loading branch information...
1 parent 5c24eaa commit 71ff3c74da23c4dcd92780f181785f3b0fc9a7c6 @matzko committed Jan 4, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 wp-filosofo-js-library.php
View
6 wp-filosofo-js-library.php
@@ -10,7 +10,7 @@
if ( ! function_exists( 'load_filosofo_js_common_library' ) ) {
- function load_filosofo_js_common_library()
+ function init_filosofo_js_common_library()
{
wp_register_script(
'filosofo-common-js',
@@ -20,13 +20,13 @@ function load_filosofo_js_common_library()
);
}
- function init_filosofo_js_common_library()
+ function enqueue_filosofo_js_common_library()
{
wp_enqueue_script( 'filosofo-common-js' );
}
add_action( 'init', 'init_filosofo_js_common_library' );
- add_action( 'plugins_loaded', 'load_filosofo_js_common_library' );
+ add_action( 'wp_enqueue_scripts', 'enqueue_filosofo_js_common_library' );
}
// eof

0 comments on commit 71ff3c7

Please sign in to comment.