Social Media Share Buttons | MashShare - Version 3.7.1

Version Description

  • Fix: Shares are not updated as intended
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 Social Media Share Buttons | MashShare
Version 3.7.1
Comparing to
See all releases

Code changes from version 3.7.0 to 3.7.1

includes/sharecount-functions.php CHANGED
@@ -181,17 +181,17 @@ function mashsb_rate_limit_exceeded(){
181
  */
182
  function mashsb_is_req_limited() {
183
  global $mashsb_debug;
184
-
185
  $data_timeout = get_transient('mashsb_limit_req');
186
-
187
  if (false === $data_timeout || empty($data_timeout) ){
188
- set_transient('mashsb_limit_req', '1', 300);
189
  $mashsb_debug[] = 'Temp Rate Limit not exceeded';
190
  return false;
191
  }
192
  $mashsb_debug[] = 'Temp Rate Limit Exceeded';
193
  return true;
194
-
195
  }
196
 
197
  /**
181
  */
182
  function mashsb_is_req_limited() {
183
  global $mashsb_debug;
184
+
185
  $data_timeout = get_transient('mashsb_limit_req');
186
+
187
  if (false === $data_timeout || empty($data_timeout) ){
188
+ set_transient('mashsb_limit_req', '1', 60);
189
  $mashsb_debug[] = 'Temp Rate Limit not exceeded';
190
  return false;
191
  }
192
  $mashsb_debug[] = 'Temp Rate Limit Exceeded';
193
  return true;
194
+
195
  }
196
 
197
  /**
includes/template-functions.php CHANGED
@@ -205,10 +205,10 @@ function getSharedcount( $url ) {
205
 
206
 
207
  // Request is rate limited
208
- if (mashsb_is_req_limited()) {
209
- $mashsb_debug[] = 'Rate limit reached: Return Share from custom meta field.';
210
- return (int) get_post_meta($post->ID, 'mashsb_shares', true) + getFakecount();
211
- }
212
 
213
 
214
  if( is_404() || is_search() || empty($url) || !mashsb_is_enabled_permalinks() || isset($mashsb_options['disable_sharecount']) || isset($_GET['preview_id']) ) {
205
 
206
 
207
  // Request is rate limited
208
+ // if (mashsb_is_req_limited()) {
209
+ // $mashsb_debug[] = 'Rate limit reached: Return Share from custom meta field.';
210
+ // return (int) get_post_meta($post->ID, 'mashsb_shares', true) + getFakecount();
211
+ // }
212
 
213
 
214
  if( is_404() || is_search() || empty($url) || !mashsb_is_enabled_permalinks() || isset($mashsb_options['disable_sharecount']) || isset($_GET['preview_id']) ) {
mashshare.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
  * Author: René Hermenau
8
  * Author URI: https://www.mashshare.net
9
- * Version: 3.7.0
10
  * Text Domain: mashsb
11
  * Domain Path: /languages
12
 
@@ -35,7 +35,7 @@ if( !defined( 'ABSPATH' ) )
35
 
36
  // Plugin version
37
  if( !defined( 'MASHSB_VERSION' ) ) {
38
- define( 'MASHSB_VERSION', '3.7.0' );
39
  }
40
 
41
  // Debug mode
6
  * Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
  * Author: René Hermenau
8
  * Author URI: https://www.mashshare.net
9
+ * Version: 3.7.1
10
  * Text Domain: mashsb
11
  * Domain Path: /languages
12
 
35
 
36
  // Plugin version
37
  if( !defined( 'MASHSB_VERSION' ) ) {
38
+ define( 'MASHSB_VERSION', '3.7.1' );
39
  }
40
 
41
  // Debug mode
readme.txt CHANGED
@@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email, dsgvo
10
  Requires at least: 3.6+
11
  Tested up to: 5.2
12
- Stable tag: 3.7.0
13
  Requires PHP: 5.2
14
 
15
  Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
@@ -250,6 +250,9 @@ Read here more about this: http://docs.mashshare.net/article/10-facebook-is-show
250
 
251
  == Changelog ==
252
 
 
 
 
253
  = 3.7.0 =
254
  * Fix: PHP Warning: Invalid argument supplied for foreach() in meta-box.php
255
  * Fix: Set the share count query rate limit to 1req/5min
9
  Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email, dsgvo
10
  Requires at least: 3.6+
11
  Tested up to: 5.2
12
+ Stable tag: 3.7.1
13
  Requires PHP: 5.2
14
 
15
  Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
250
 
251
  == Changelog ==
252
 
253
+ = 3.7.1 =
254
+ * Fix: Shares are not updated as intended
255
+
256
  = 3.7.0 =
257
  * Fix: PHP Warning: Invalid argument supplied for foreach() in meta-box.php
258
  * Fix: Set the share count query rate limit to 1req/5min