SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | add_action( 'init', 'rhl_theme_init' ); | |
4 | ||
5 | function rhl_theme_init() { | |
6 | - | wp_enqueue_script( 'd3', get_template_directory_uri() . '/d3/d3.js', array(), 'optional_version_number_string' ); |
6 | + | if ( ! is_admin() ) { |
7 | - | } |
7 | + | wp_enqueue_script( 'd3', get_template_directory_uri() . '/d3/d3.js', array(), 'optional_version_number_string' ); |
8 | } | |
9 | } | |
10 | ||
11 |