WordPress.org

Plugin Directory

Changeset 1713858


Ignore:
Timestamp:
08/16/17 01:17:11 (5 weeks ago)
Author:
micropat
Message:

1.7.15

  • Use the wp_enqueue_scripts action hook instead of wp_print_styles for the plugin's stylesheet
  • Use the home_url() instead of the Host header when generating the current URL to be shared
  • Line endings
Location:
add-to-any/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • add-to-any/trunk/README.txt

    r1704741 r1713858  
    44Requires at least: 3.7 
    55Tested up to: 4.8 
    6 Stable tag: 1.7.14 
     6Stable tag: 1.7.15 
    77 
    88Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too. 
     
    188188    ADDTOANY_SHARE_SAVE_KIT( array(  
    189189        'linkname' => is_home() ? get_bloginfo( 'description' ) : wp_title( '', false ), 
    190         'linkurl'  => esc_url_raw( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ), 
     190        'linkurl'  => esc_url_raw( home_url( $_SERVER['REQUEST_URI'] ) ), 
    191191    ) ); 
    192192} ?>` 
     
    349349 
    350350== Changelog == 
     351 
     352= 1.7.15 = 
     353* Use the `wp_enqueue_scripts` action hook instead of `wp_print_styles` for the plugin's stylesheet 
     354* Use the `home_url()` instead of the `Host` header when generating the current URL to be shared (thanks Paul) 
    351355 
    352356= 1.7.14 = 
  • add-to-any/trunk/add-to-any.php

    r1704741 r1713858  
    44Plugin URI: https://www.addtoany.com/ 
    55Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. 
    6 Version: 1.7.14 
     6Version: 1.7.15 
    77Author: AddToAny 
    88Author URI: https://www.addtoany.com/ 
     
    7373    if ( ! $linkurl ) { 
    7474        if ( $use_current_page ) { 
    75             $linkurl = esc_url_raw ( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); 
     75            $linkurl = esc_url_raw( home_url( $_SERVER['REQUEST_URI'] ) ); 
    7676        } elseif ( isset( $post ) ) { 
    7777            $linkurl = get_permalink( $post->ID ); 
     
    994994} 
    995995 
    996 add_action( 'wp_print_styles', 'A2A_SHARE_SAVE_stylesheet' ); 
     996add_action( 'wp_enqueue_scripts', 'A2A_SHARE_SAVE_stylesheet' ); 
    997997 
    998998function A2A_SHARE_SAVE_enqueue_script() { 
Note: See TracChangeset for help on using the changeset viewer.