@@ 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 | } |
@@ 947-949 (lines=3) @@ | ||
944 | wp_register_script( 'jquery.spin', plugins_url( '_inc/build/jquery.spin.min.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' ); |
|
945 | } |
|
946 | ||
947 | if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { |
|
948 | wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/build/gallery-settings.min.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' ); |
|
949 | } |
|
950 | ||
951 | if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) { |
|
952 | wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/build/twitter-timeline.min.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true ); |