|
@@ 111-113 (lines=3) @@
|
| 108 |
|
$this->print_js(); |
| 109 |
|
|
| 110 |
|
// attempt to use core or plugin libraries if registered |
| 111 |
|
if ( !wp_script_is( 'mustache', 'registered' ) ) { |
| 112 |
|
wp_register_script( 'mustache', Jetpack::wpcom_static_url( '/wp-content/js/mustache.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 113 |
|
} |
| 114 |
|
if ( !wp_script_is( 'underscore', 'registered' ) ) { |
| 115 |
|
wp_register_script( 'underscore', Jetpack::wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 116 |
|
} |
|
@@ 114-116 (lines=3) @@
|
| 111 |
|
if ( !wp_script_is( 'mustache', 'registered' ) ) { |
| 112 |
|
wp_register_script( 'mustache', Jetpack::wpcom_static_url( '/wp-content/js/mustache.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 113 |
|
} |
| 114 |
|
if ( !wp_script_is( 'underscore', 'registered' ) ) { |
| 115 |
|
wp_register_script( 'underscore', Jetpack::wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 116 |
|
} |
| 117 |
|
if ( !wp_script_is( 'backbone', 'registered' ) ) { |
| 118 |
|
wp_register_script( 'backbone', Jetpack::wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
| 119 |
|
} |
|
@@ 117-119 (lines=3) @@
|
| 114 |
|
if ( !wp_script_is( 'underscore', 'registered' ) ) { |
| 115 |
|
wp_register_script( 'underscore', Jetpack::wpcom_static_url( '/wp-includes/js/underscore.min.js' ), null, JETPACK_NOTES__CACHE_BUSTER ); |
| 116 |
|
} |
| 117 |
|
if ( !wp_script_is( 'backbone', 'registered' ) ) { |
| 118 |
|
wp_register_script( 'backbone', Jetpack::wpcom_static_url( '/wp-includes/js/backbone.min.js' ), array( 'underscore' ), JETPACK_NOTES__CACHE_BUSTER ); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
wp_register_script( 'wpcom-notes-common', Jetpack::wpcom_static_url( '/wp-content/mu-plugins/notes/notes-common-v2.js' ), array( 'jquery', 'underscore', 'backbone', 'mustache' ), JETPACK_NOTES__CACHE_BUSTER ); |
| 122 |
|
wp_enqueue_script( 'wpcom-notes-admin-bar', Jetpack::wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-v2.js' ), array( 'wpcom-notes-common' ), JETPACK_NOTES__CACHE_BUSTER ); |