Changeset 2189610
- Timestamp:
- 11/11/2019 10:51:37 AM (6 years ago)
- Location:
- social-rocket/trunk
- Files:
-
- 4 edited
-
includes/class-social-rocket-background-process.php (modified) (3 diffs)
-
includes/social-rocket-deactivate.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
social-rocket.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-rocket/trunk/includes/class-social-rocket-background-process.php
r2172087 r2189610 86 86 87 87 $master_throttle = apply_filters( 'social_rocket_master_throttle', 1 ); 88 sleep( $master_throttle ); 88 89 89 90 // Actions to perform … … 108 109 if ( $now - $last < $throttle ) { 109 110 // too soon. save this for later 110 sleep( $master_throttle );111 111 return $item; 112 112 } … … 122 122 } else { 123 123 // something went wrong. try again later 124 sleep( $master_throttle );125 124 return $item; 126 125 } -
social-rocket/trunk/includes/social-rocket-deactivate.php
r2146054 r2189610 26 26 27 27 } 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 28 50 } 29 51 -
social-rocket/trunk/readme.txt
r2172087 r2189610 4 4 Tags: 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 5 5 Requires at least: 4.4 6 Tested up to: 5. 26 Tested up to: 5.3 7 7 Requires PHP: 5.5 8 Stable tag: 1.2. 28 Stable tag: 1.2.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 84 84 == Changelog == 85 = 1.2.3 = 86 * FIX: clear background queue upon deactivation 87 * UPDATE: refactor master throttle 88 85 89 = 1.2.2 = 86 90 * FIX: issue with share URL when using "plain" permalinks. -
social-rocket/trunk/social-rocket.php
r2172087 r2189610 3 3 * Plugin Name: Social Rocket 4 4 * Description: Social Sharing... to the Moon! 5 * Version: 1.2. 25 * Version: 1.2.3 6 6 * Author: Social Rocket 7 7 * Author URI: http://wpsocialrocket.com/ … … 17 17 } 18 18 19 define( 'SOCIAL_ROCKET_VERSION', '1.2. 2' );19 define( 'SOCIAL_ROCKET_VERSION', '1.2.3' ); 20 20 define( 'SOCIAL_ROCKET_DBVERSION', '3' ); 21 21 define( 'SOCIAL_ROCKET_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.