| @@ 57-68 (lines=12) @@ | ||
| 54 | * Registers/enqueues the gallery settings admin js.  | 
                                |
| 55 | */  | 
                                |
| 56 | 	function wp_enqueue_media() { | 
                                |
| 57 | 		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { | 
                                |
| 58 | /**  | 
                                |
| 59 | * This only happens if we're not in Jetpack, but on WPCOM instead.  | 
                                |
| 60 | * This is the correct path for WPCOM.  | 
                                |
| 61 | */  | 
                                |
| 62 | wp_register_script(  | 
                                |
| 63 | 'jetpack-gallery-settings',  | 
                                |
| 64 | Assets::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ),  | 
                                |
| 65 | array( 'media-views' ),  | 
                                |
| 66 | '20121225'  | 
                                |
| 67 | );  | 
                                |
| 68 | }  | 
                                |
| 69 | ||
| 70 | wp_enqueue_script( 'jetpack-gallery-settings' );  | 
                                |
| 71 | }  | 
                                |
| @@ 1263-1270 (lines=8) @@ | ||
| 1260 | * @return null  | 
                                |
| 1261 | */  | 
                                |
| 1262 | 	public function register_assets() { | 
                                |
| 1263 | 		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { | 
                                |
| 1264 | wp_register_script(  | 
                                |
| 1265 | 'jetpack-gallery-settings',  | 
                                |
| 1266 | Assets::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ),  | 
                                |
| 1267 | array( 'media-views' ),  | 
                                |
| 1268 | '20121225'  | 
                                |
| 1269 | );  | 
                                |
| 1270 | }  | 
                                |
| 1271 | ||
| 1272 | 		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) { | 
                                |
| 1273 | wp_register_script(  | 
                                |