| @@ 931-933 (lines=3) @@ | ||
| 928 | wp_register_script( 'jquery.spin', plugins_url( '_inc/build/jquery.spin.min.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' ); |
|
| 929 | } |
|
| 930 | ||
| 931 | if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { |
|
| 932 | wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/build/gallery-settings.min.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' ); |
|
| 933 | } |
|
| 934 | ||
| 935 | if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) { |
|
| 936 | wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/build/twitter-timeline.min.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true ); |
|
| @@ 55-61 (lines=7) @@ | ||
| 52 | * Registers/enqueues the gallery settings admin js. |
|
| 53 | */ |
|
| 54 | function wp_enqueue_media() { |
|
| 55 | if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { |
|
| 56 | /** |
|
| 57 | * This only happens if we're not in Jetpack, but on WPCOM instead. |
|
| 58 | * This is the correct path for WPCOM. |
|
| 59 | */ |
|
| 60 | wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/build/gallery-settings.min.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' ); |
|
| 61 | } |
|
| 62 | ||
| 63 | wp_enqueue_script( 'jetpack-gallery-settings' ); |
|
| 64 | } |
|