Plugin Directory

Changeset 2189610


Ignore:
Timestamp:
11/11/2019 10:51:37 AM (6 years ago)
Author:
socialrocket
Message:

Version 1.2.3 update

Location:
social-rocket/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • social-rocket/trunk/includes/class-social-rocket-background-process.php

    r2172087 r2189610  
    8686       
    8787        $master_throttle = apply_filters( 'social_rocket_master_throttle', 1 );
     88        sleep( $master_throttle );
    8889       
    8990        // Actions to perform
     
    108109                if ( $now - $last < $throttle ) {
    109110                    // too soon. save this for later
    110                     sleep( $master_throttle );
    111111                    return $item;
    112112                }
     
    122122                } else {
    123123                    // something went wrong. try again later
    124                     sleep( $master_throttle );
    125124                    return $item;
    126125                }
  • social-rocket/trunk/includes/social-rocket-deactivate.php

    r2146054 r2189610  
    2626       
    2727    }
     28   
     29    // clear background queue
     30    $table        = $wpdb->options;
     31    $column       = 'option_name';
     32    $key_column   = 'option_id';
     33    $value_column = 'option_value';
     34   
     35    if ( is_multisite() ) {
     36        $table        = $wpdb->sitemeta;
     37        $column       = 'meta_key';
     38        $key_column   = 'meta_id';
     39        $value_column = 'meta_value';
     40    }
     41   
     42    $key = $wpdb->esc_like( 'wp_social_rocket_background_process_batch_' ) . '%';
     43   
     44    $wpdb->query( $wpdb->prepare( "
     45        DELETE
     46        FROM {$table}
     47        WHERE {$column} LIKE %s
     48    ", $key ) );
     49   
    2850}
    2951
  • social-rocket/trunk/readme.txt

    r2172087 r2189610  
    44Tags: social share, social buttons, social share buttons, social media, share counts, social sharing, click to tweet, social rocket, facebook share, social media share, pinterest description, social media sharing
    55Requires at least: 4.4
    6 Tested up to: 5.2
     6Tested up to: 5.3
    77Requires PHP: 5.5
    8 Stable tag: 1.2.2
     8Stable tag: 1.2.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8383
    8484== Changelog ==
     85= 1.2.3 =
     86* FIX: clear background queue upon deactivation
     87* UPDATE: refactor master throttle
     88
    8589= 1.2.2 =
    8690* FIX: issue with share URL when using "plain" permalinks.
  • social-rocket/trunk/social-rocket.php

    r2172087 r2189610  
    33 * Plugin Name: Social Rocket
    44 * Description: Social Sharing... to the Moon!
    5  * Version: 1.2.2
     5 * Version: 1.2.3
    66 * Author: Social Rocket
    77 * Author URI: http://wpsocialrocket.com/
     
    1717}
    1818
    19 define( 'SOCIAL_ROCKET_VERSION', '1.2.2' );
     19define( 'SOCIAL_ROCKET_VERSION', '1.2.3' );
    2020define( 'SOCIAL_ROCKET_DBVERSION', '3' );
    2121define( 'SOCIAL_ROCKET_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.