@@ 35-41 (lines=7) @@ | ||
32 | * Registers/enqueues the gallery settings admin js. |
|
33 | */ |
|
34 | function wp_enqueue_media() { |
|
35 | if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { |
|
36 | /** |
|
37 | * This only happens if we're not in Jetpack, but on WPCOM instead. |
|
38 | * This is the correct path for WPCOM. |
|
39 | */ |
|
40 | wp_register_script( 'jetpack-gallery-settings', plugins_url( 'gallery-settings/gallery-settings.js', __FILE__ ), array( 'media-views' ), '20121225' ); |
|
41 | } |
|
42 | ||
43 | wp_enqueue_script( 'jetpack-gallery-settings' ); |
|
44 | } |
@@ 1050-1052 (lines=3) @@ | ||
1047 | wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' ); |
|
1048 | } |
|
1049 | ||
1050 | if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { |
|
1051 | wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' ); |
|
1052 | } |
|
1053 | ||
1054 | /** |
|
1055 | * As jetpack_register_genericons is by default fired off a hook, |