WordPress.org

Plugin Directory

Changeset 622240


Ignore:
Timestamp:
11/07/12 18:57:59 (18 months ago)
Author:
mdawaffe
Message:

Sharing: Deprecate WP_SHARING_PLUGIN_VERSION in favor of JETPACK__VERSION so that static resources get bumped correctly for each Jetpack release.

Location:
jetpack/trunk/modules/sharedaddy
Files:
2 edited

Legend:

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

    r588072 r622240  
    33include_once dirname( __FILE__ ).'/sharing-sources.php'; 
    44 
    5 define( 'WP_SHARING_PLUGIN_VERSION', '0.3.1' ); 
     5define( 'WP_SHARING_PLUGIN_VERSION', JETPACK__VERSION ); 
    66 
    77class Sharing_Service { 
     
    433433     
    434434    if ( count( $enabled['all'] ) > 0 ) 
    435         wp_enqueue_style( 'sharedaddy', plugin_dir_url( __FILE__ ) .'sharing.css', array(), WP_SHARING_PLUGIN_VERSION ); 
     435        wp_enqueue_style( 'sharedaddy', plugin_dir_url( __FILE__ ) .'sharing.css', array(), JETPACK__VERSION ); 
    436436} 
    437437add_action( 'wp_head', 'sharing_add_header', 1 ); 
  • jetpack/trunk/modules/sharedaddy/sharing.php

    r622237 r622240  
    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, WP_SHARING_PLUGIN_VERSION ); 
    28         wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL.'sharing.css', false, WP_SHARING_PLUGIN_VERSION ); 
     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 ); 
    2929        wp_enqueue_script( 'sharing-js-fe', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 2 ); 
    3030 
Note: See TracChangeset for help on using the changeset viewer.