Plugin Directory


Ignore:
Timestamp:
07/09/2014 07:57:26 PM (12 years ago)
Author:
enej
Message:

Jetpack: Updating trunk to 3.1-beta1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/sharedaddy/sharing.php

    r894377 r945782  
    2525    public function sharing_head() {
    2626        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
    3038        wp_enqueue_script( 'sharing-js-fe', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 3 );
    3139
     
    159167            echo '<div class="updated"><p>'.__( 'Settings have been saved', 'jetpack' ).'</p></div>';
    160168
    161         if( !isset( $global['sharing_label'] ) || '' == $global['sharing_label']  ) {
     169        if( !isset( $global['sharing_label'] ) ) {
    162170            $global['sharing_label'] = __( 'Share this:', 'jetpack' );
    163171        }
Note: See TracChangeset for help on using the changeset viewer.