Social Media Share Buttons | MashShare - Version 3.3.4

Version Description

  • Fix: Disabling share count still makes requests to facebook and co. Important fix to resolve facebook rate limit issues which result in stuck share count
Download this release

Release Info

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

Code changes from version 3.3.3 to 3.3.4

Files changed (3) hide show
  1. includes/template-functions.php +5 -2
  2. mashshare.php +2 -2
  3. readme.txt +4 -1
includes/template-functions.php CHANGED
@@ -87,6 +87,8 @@ function mashsbGetShareMethod( $mashsbSharesObj ) {
87
*/
88
function mashsbGetNonPostShares( $url ) {
89
global $mashsb_error;
90
// Expiration
91
$expiration = mashsb_get_expiration();
92
@@ -140,7 +142,7 @@ function mashsbGetNonPostShares( $url ) {
140
*/
141
142
function getSharedcount( $url ) {
143
- global $post, $mashsb_sharecount, $mashsb_error; // todo test a global share count var if it reduces the amount of requests
144
145
// Return global share count variable to prevent multiple execution
146
if (is_array($mashsb_sharecount) && array_key_exists($url, $mashsb_sharecount) && !empty($mashsb_sharecount[$url]) && !mashsb_is_cache_refresh() ){
@@ -157,11 +159,12 @@ function getSharedcount( $url ) {
157
* - search page
158
* - empty url
159
* - disabled permalinks
160
* - deprecated: admin pages (we need to remove this for themes which are using a bad infinite scroll implementation where is_admin() is always true)
161
*/
162
163
164
- if( is_404() || is_search() || empty($url) || !mashsb_is_enabled_permalinks()) {
165
return apply_filters( 'filter_get_sharedcount', 0 );
166
}
167
87
*/
88
function mashsbGetNonPostShares( $url ) {
89
global $mashsb_error;
90
+
91
+
92
// Expiration
93
$expiration = mashsb_get_expiration();
94
142
*/
143
144
function getSharedcount( $url ) {
145
+ global $mashsb_options, $post, $mashsb_sharecount, $mashsb_error; // todo test a global share count var if it reduces the amount of requests
146
147
// Return global share count variable to prevent multiple execution
148
if (is_array($mashsb_sharecount) && array_key_exists($url, $mashsb_sharecount) && !empty($mashsb_sharecount[$url]) && !mashsb_is_cache_refresh() ){
159
* - search page
160
* - empty url
161
* - disabled permalinks
162
+ * - disabled share count setting
163
* - deprecated: admin pages (we need to remove this for themes which are using a bad infinite scroll implementation where is_admin() is always true)
164
*/
165
166
167
+ if( is_404() || is_search() || empty($url) || !mashsb_is_enabled_permalinks() || isset($mashsb_options['disable_sharecount']) ) {
168
return apply_filters( 'filter_get_sharedcount', 0 );
169
}
170
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.3.3
10
* Text Domain: mashsb
11
* Domain Path: /languages
12
* Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
@@ -37,7 +37,7 @@ if( !defined( 'ABSPATH' ) )
37
38
// Plugin version
39
if( !defined( 'MASHSB_VERSION' ) ) {
40
- define( 'MASHSB_VERSION', '3.3.3' );
41
}
42
43
// 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.3.4
10
* Text Domain: mashsb
11
* Domain Path: /languages
12
* Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
37
38
// Plugin version
39
if( !defined( 'MASHSB_VERSION' ) ) {
40
+ define( 'MASHSB_VERSION', '3.3.4' );
41
}
42
43
// 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
10
Requires at least: 3.6+
11
Tested up to: 4.7
12
- Stable tag: 3.3.3
13
14
Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
15
@@ -316,6 +316,9 @@ Read here more FAQ: [https://www.mashshare.net/faq/](https://www.mashshare.net/f
316
317
== Changelog ==
318
319
= 3.3.3 =
320
* Fix: css not minified properly
321
* Fix: Rewrite some code to be PHP 7 compatible
9
Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email
10
Requires at least: 3.6+
11
Tested up to: 4.7
12
+ Stable tag: 3.3.4
13
14
Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
15
316
317
== Changelog ==
318
319
+ = 3.3.4 =
320
+ * Fix: Disabling share count still makes requests to facebook and co. Important fix to resolve facebook rate limit issues which result in stuck share count
321
+
322
= 3.3.3 =
323
* Fix: css not minified properly
324
* Fix: Rewrite some code to be PHP 7 compatible