| @@ 55-66 (lines=12) @@ | ||
| 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(  | 
                                |
| 61 | 'jetpack-gallery-settings',  | 
                                |
| 62 | Jetpack::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ),  | 
                                |
| 63 | array( 'media-views' ),  | 
                                |
| 64 | '20121225'  | 
                                |
| 65 | );  | 
                                |
| 66 | }  | 
                                |
| 67 | ||
| 68 | wp_enqueue_script( 'jetpack-gallery-settings' );  | 
                                |
| 69 | }  | 
                                |
| @@ 967-974 (lines=8) @@ | ||
| 964 | );  | 
                                |
| 965 | }  | 
                                |
| 966 | ||
| 967 | 		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) { | 
                                |
| 968 | wp_register_script(  | 
                                |
| 969 | 'jetpack-gallery-settings',  | 
                                |
| 970 | self::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ),  | 
                                |
| 971 | array( 'media-views' ),  | 
                                |
| 972 | '20121225'  | 
                                |
| 973 | );  | 
                                |
| 974 | }  | 
                                |
| 975 | ||
| 976 | 		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) { | 
                                |
| 977 | wp_register_script(  | 
                                |