summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sharedaddy/sharing.php')
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/jetpack/modules/sharedaddy/sharing.php b/plugins/jetpack/modules/sharedaddy/sharing.php
index b147b81a..f6a6bebd 100644
--- a/plugins/jetpack/modules/sharedaddy/sharing.php
+++ b/plugins/jetpack/modules/sharedaddy/sharing.php
@@ -23,7 +23,15 @@ class Sharing_Admin {
}
public function sharing_head() {
- wp_enqueue_script( 'sharing-js', WP_SHARING_PLUGIN_URL . 'admin-sharing.js', array( 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'jquery-form' ), 2 );
+ wp_enqueue_script(
+ 'sharing-js',
+ Jetpack::get_file_url_for_environment(
+ '_inc/build/sharedaddy/admin-sharing.min.js',
+ 'modules/sharedaddy/admin-sharing.js'
+ ),
+ array( 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'jquery-form' ),
+ 2
+ );
$postfix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
if ( is_rtl() ) {
wp_enqueue_style( 'sharing-admin', WP_SHARING_PLUGIN_URL . 'admin-sharing-rtl' . $postfix . '.css', false, JETPACK__VERSION );
@@ -376,10 +384,10 @@ class Sharing_Admin {
$label = $post_type_object->labels->name;
}
?>
- <?php
- if ( $br ) {
+ <?php
+ if ( $br ) {
echo '<br />';
- }
+ }
?>
<label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
<?php