Changeset 945782 for jetpack/trunk/modules/sharedaddy/sharing.php
- Timestamp:
- 07/09/2014 07:57:26 PM (12 years ago)
- File:
-
- 1 edited
-
jetpack/trunk/modules/sharedaddy/sharing.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/modules/sharedaddy/sharing.php
r894377 r945782 25 25 public function sharing_head() { 26 26 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 ); 27 wp_enqueue_style( 'sharing-admin', WP_SHARING_PLUGIN_URL.'admin-sharing.css', false, JETPACK__VERSION ); 28 wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL.'sharing.css', false, JETPACK__VERSION ); 29 wp_enqueue_style( 'genericons' ); 27 28 // @todo: Remove this opt-out filter in the future 29 if ( ( ! defined( 'IS_WPCOM' ) ) || ( ! IS_WPCOM ) || apply_filters( 'wpl_sharing_2014_1', true ) ) { 30 wp_enqueue_style( 'sharing-admin', WP_SHARING_PLUGIN_URL.'admin-sharing.css', false, JETPACK__VERSION ); 31 wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL.'sharing.css', false, JETPACK__VERSION ); 32 wp_enqueue_style( 'genericons' ); 33 } else { 34 wp_enqueue_style( 'sharing-admin', WP_SHARING_PLUGIN_URL.'admin-sharing-legacy.css', false, JETPACK__VERSION ); 35 wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL.'sharing-legacy.css', false, JETPACK__VERSION ); 36 } 37 30 38 wp_enqueue_script( 'sharing-js-fe', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 3 ); 31 39 … … 159 167 echo '<div class="updated"><p>'.__( 'Settings have been saved', 'jetpack' ).'</p></div>'; 160 168 161 if( !isset( $global['sharing_label'] ) || '' == $global['sharing_label']) {169 if( !isset( $global['sharing_label'] ) ) { 162 170 $global['sharing_label'] = __( 'Share this:', 'jetpack' ); 163 171 }
Note: See TracChangeset
for help on using the changeset viewer.