Version Description
- New: Compatible up to WordPress 5.0.3
- Fix: Make sure to not disable TLS while using native curl implementation
Download this release
Release Info
Developer | ReneHermi |
Plugin | Social Media Share Buttons | MashShare |
Version | 3.5.8 |
Comparing to | |
See all releases |
Code changes from version 3.5.7 to 3.5.8
- includes/libraries/RolingCurlX.php +1 -1
- includes/libraries/class-bitly-shorturl.php +2 -2
- includes/mashengine.php +12 -8
- mashshare.php +2 -2
- readme.txt +7 -2
includes/libraries/RolingCurlX.php
CHANGED
@@ -211,7 +211,7 @@ Class RollingCurlX {
|
|
211 |
private function stopTimer(array &$request) {
|
212 |
$start_time = $request['timer'];
|
213 |
$end_time = microtime(true);
|
214 |
-
$elapsed_time = rtrim(sprintf('%.20F', ($end_time - $start_time)), '0')
|
215 |
$request['time'] = $elapsed_time*1000; //
|
216 |
unset($request['timer']);
|
217 |
}
|
211 |
private function stopTimer(array &$request) {
|
212 |
$start_time = $request['timer'];
|
213 |
$end_time = microtime(true);
|
214 |
+
$elapsed_time = rtrim(sprintf('%.20F', ($end_time - $start_time)), '0'); //convert float to string
|
215 |
$request['time'] = $elapsed_time*1000; //
|
216 |
unset($request['timer']);
|
217 |
}
|
includes/libraries/class-bitly-shorturl.php
CHANGED
@@ -179,7 +179,7 @@ class mashsb_bitly_shorturl {
|
|
179 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
180 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
|
181 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
182 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
183 |
$output = curl_exec($ch);
|
184 |
} catch (Exception $e) {
|
185 |
|
@@ -216,7 +216,7 @@ class mashsb_bitly_shorturl {
|
|
216 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
217 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
|
218 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
219 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
220 |
$output = curl_exec($ch);
|
221 |
} catch (Exception $e) {
|
222 |
|
179 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
180 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
|
181 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
182 |
+
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
183 |
$output = curl_exec($ch);
|
184 |
} catch (Exception $e) {
|
185 |
|
216 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
217 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
|
218 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
219 |
+
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
220 |
$output = curl_exec($ch);
|
221 |
} catch (Exception $e) {
|
222 |
|
includes/mashengine.php
CHANGED
@@ -56,10 +56,12 @@ class mashengine {
|
|
56 |
$post_data = null;
|
57 |
$headers = null;
|
58 |
|
59 |
-
$options = array(
|
60 |
-
CURLOPT_SSL_VERIFYPEER => FALSE,
|
61 |
-
CURLOPT_SSL_VERIFYHOST => FALSE
|
62 |
-
);
|
|
|
|
|
63 |
|
64 |
$RollingCurlX = new RollingCurlX( 4 ); // max 10 simultaneous downloads
|
65 |
$RollingCurlX->setOptions( $options );
|
@@ -148,10 +150,12 @@ class mashengine {
|
|
148 |
$post_data = null;
|
149 |
$headers = null;
|
150 |
|
151 |
-
$options = array(
|
152 |
-
CURLOPT_SSL_VERIFYPEER => FALSE,
|
153 |
-
CURLOPT_SSL_VERIFYHOST => FALSE
|
154 |
-
);
|
|
|
|
|
155 |
|
156 |
$RollingCurlX = new RollingCurlX( 10 ); // max 10 simultaneous downloads
|
157 |
$RollingCurlX->setOptions( $options );
|
56 |
$post_data = null;
|
57 |
$headers = null;
|
58 |
|
59 |
+
// $options = array(
|
60 |
+
// CURLOPT_SSL_VERIFYPEER => FALSE,
|
61 |
+
// CURLOPT_SSL_VERIFYHOST => FALSE
|
62 |
+
// );
|
63 |
+
|
64 |
+
$options = array();
|
65 |
|
66 |
$RollingCurlX = new RollingCurlX( 4 ); // max 10 simultaneous downloads
|
67 |
$RollingCurlX->setOptions( $options );
|
150 |
$post_data = null;
|
151 |
$headers = null;
|
152 |
|
153 |
+
// $options = array(
|
154 |
+
// CURLOPT_SSL_VERIFYPEER => FALSE,
|
155 |
+
// CURLOPT_SSL_VERIFYHOST => FALSE
|
156 |
+
// );
|
157 |
+
|
158 |
+
$options = array();
|
159 |
|
160 |
$RollingCurlX = new RollingCurlX( 10 ); // max 10 simultaneous downloads
|
161 |
$RollingCurlX->setOptions( $options );
|
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.5.
|
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.5.
|
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.5.8
|
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.5.8' );
|
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, dsgvo
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 5.0
|
12 |
-
Stable tag: 3.5.
|
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,11 @@ Read here more about this: http://docs.mashshare.net/article/10-facebook-is-show
|
|
250 |
|
251 |
== Changelog ==
|
252 |
|
|
|
|
|
|
|
|
|
|
|
253 |
= 3.5.7 =
|
254 |
* New: Compatible up to WordPress 5.0.1 Gutenberg
|
255 |
* New: Option to hide MashShare share options editor meta box completely
|
@@ -352,6 +357,6 @@ https://www.mashshare.net/changelog/
|
|
352 |
|
353 |
== Upgrade Notice ==
|
354 |
|
355 |
-
= 3.5.
|
356 |
* New: Security Fix
|
357 |
|
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.0
|
12 |
+
Stable tag: 3.5.8
|
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.5.8 =
|
254 |
+
* New: Compatible up to WordPress 5.0.3
|
255 |
+
* Fix: Make sure to not disable TLS while using native curl implementation
|
256 |
+
|
257 |
+
|
258 |
= 3.5.7 =
|
259 |
* New: Compatible up to WordPress 5.0.1 Gutenberg
|
260 |
* New: Option to hide MashShare share options editor meta box completely
|
357 |
|
358 |
== Upgrade Notice ==
|
359 |
|
360 |
+
= 3.5.8 =
|
361 |
* New: Security Fix
|
362 |
|