Plugin Directory

Changeset 864696


Ignore:
Timestamp:
02/25/2014 12:59:47 PM (12 years ago)
Author:
srijith.v
Message:

Releasing 1.0.9

Location:
addthis-smart-layers/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • addthis-smart-layers/trunk/addthis-smart_layers.php

    r857036 r864696  
    33 * Plugin Name: AddThis Smart Layers
    44 * Description: AddThis Smart Layers. Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor.
    5  * Version: 1.0.8
     5 * Version: 1.0.9
    66 * Author: The AddThis Team
    77 * Author URI: http://www.addthis.com/blog
     
    1010*/
    1111
    12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.8');
     12define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.9');
    1313define('ADDTHIS_SMART_LAYER_AT_VERSION', 300);
    1414
     
    177177    if ($profile || $share_profile) {
    178178        $smart_layer_pro = get_option('smart_layer_pro');
    179         $ch = curl_init();
    180179        if ($profile) {
    181             curl_setopt($ch, CURLOPT_URL, "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $profile);
     180            $request = wp_remote_get( "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $profile );
    182181        } else {
    183             curl_setopt($ch, CURLOPT_URL, "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $share_profile);
    184         }
    185 
    186         // receive server response ...
    187         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    188 
    189         // further processing ....
    190         $server_output = curl_exec($ch);
    191         curl_close($ch);
     182            $request = wp_remote_get( "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $share_profile );
     183        }
     184
     185        $server_output = wp_remote_retrieve_body( $request );
    192186        $array = json_decode($server_output);
    193187        // check for pro user
  • addthis-smart-layers/trunk/readme.txt

    r857037 r864696  
    44Requires at least: 3.3
    55Tested up to: 3.8.1
    6 Stable tag: 1.0.8
     6Stable tag: 1.0.9
    77
    88Increase traffic, content engagement, and revenue by showing the right social tools and best content. Make your site smarter with Smart Layers.
     
    9494
    9595== Changelog ==
     96= 1.0.9 =
     97* Resolved conflict with WP-Supercache plugin
     98* Fix for servers without CURL support
    9699
    97100= 1.0.8 =
     
    119122* Bug fixes.
    120123
     124
     125
    121126== Upgrade Notice ==
     127= 1.0.9 =
     128Resolved conflict with WP-Supercache plugin and support for servers without CURL
     129
    122130= 1.0.8 =
    123131Minor bug fix
  • addthis-smart-layers/trunk/views/includes/addthis_addjs.php

    r814477 r864696  
    132132
    133133    function check_for_footer(){
    134         $url = add_query_arg( array( 'attest' => 'true') , get_option('home'));
     134        $url = home_url();
    135135        $response = wp_remote_get( $url, array( 'sslverify' => false ) );
    136136        $code = (int) wp_remote_retrieve_response_code( $response );
     
    143143   
    144144    function maybe_add_footer_comment(){
    145         if ( $_GET['attest'] = 'true' )
    146         {
    147145            add_action( 'wp_footer', array($this, 'test_footer' ), 99999 ); // Some obscene priority, make sure we run last
    148         }
    149146    }
    150147
Note: See TracChangeset for help on using the changeset viewer.