Shariff Wrapper - Version 4.6.6

Version Description

  • Fix sanitize_callback parameter to avoid warnings with api requests
  • tested for 5.7
Download this release

Release Info

Developer 3UU
Plugin Icon 128x128 Shariff Wrapper
Version 4.6.6
Comparing to
See all releases

Code changes from version 4.6.5 to 4.6.6

Files changed (2) hide show
  1. readme.txt +9 -4
  2. shariff.php +4 -2
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: starguide, 3UU
3
  Tags: Shariff, GDPR, DSGVO, share buttons, sharing
4
  Requires at least: 4.9
5
- Requires PHP: 7.0
6
- Tested up to: 5.4
7
- Stable tag: 4.6.5
8
  License: MIT
9
  License URI: http://opensource.org/licenses/mit
10
 
@@ -47,7 +47,8 @@ Yes. You can use <code>do_shortcode('[shariff services="totalnumber"]')</code> t
47
  = Is there an action hook to use the share counts every time they get updated? =
48
  Yes. You can use
49
  <code>function your_awesome_function( $share_counts ) {
50
- // $share_counts is an array including all enabled services, the timestamp of the update and the url of the post.
 
51
  // do stuff
52
  }
53
  add_action( 'shariff_share_counts', 'your_awesome_function' );</code>
@@ -144,6 +145,10 @@ These are bugs or unexpected glitches that we know of, but that do not have an i
144
 
145
  == Changelog ==
146
 
 
 
 
 
147
  = 4.6.5 =
148
  - updated to Facebook Graph API v6.0
149
  - fixed minor bug
2
  Contributors: starguide, 3UU
3
  Tags: Shariff, GDPR, DSGVO, share buttons, sharing
4
  Requires at least: 4.9
5
+ Requires PHP: 7.2
6
+ Tested up to: 5.7.3
7
+ Stable tag: 4.6.6
8
  License: MIT
9
  License URI: http://opensource.org/licenses/mit
10
 
47
  = Is there an action hook to use the share counts every time they get updated? =
48
  Yes. You can use
49
  <code>function your_awesome_function( $share_counts ) {
50
+ // $share_counts is an array including all enabled services,
51
+ // the timestamp of the update and the url of the post.
52
  // do stuff
53
  }
54
  add_action( 'shariff_share_counts', 'your_awesome_function' );</code>
145
 
146
  == Changelog ==
147
 
148
+ = 4.6.6 =
149
+ - Fix sanitize_callback parameter to avoid warnings with api requests
150
+ - tested for 5.7
151
+
152
  = 4.6.5 =
153
  - updated to Facebook Graph API v6.0
154
  - fixed minor bug
shariff.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shariff Wrapper
4
  * Plugin URI: https://wordpress.org/plugins-wp/shariff/
5
  * Description: Shariff provides share buttons that respect the privacy of your visitors and follow the General Data Protection Regulation (GDPR).
6
- * Version: 4.6.5
7
  * Author: Jan-Peter Lambeck & 3UU
8
  * Author URI: https://wordpress.org/plugins/shariff/
9
  * License: MIT
@@ -33,7 +33,7 @@ $shariff3uu = array_merge( $shariff3uu_basic, $shariff3uu_design, $shariff3uu_ad
33
  */
34
  function shariff3uu_update() {
35
  // Adjust code version.
36
- $code_version = '4.6.5';
37
 
38
  // Get basic options.
39
  $shariff3uu_basic = (array) get_option( 'shariff3uu_basic' );
@@ -192,6 +192,8 @@ function shariff3uu_sanitize_api() {
192
  array(
193
  'methods' => 'GET',
194
  'callback' => 'shariff3uu_share_counts',
 
 
195
  'args' => array(
196
  'url' => array(
197
  'sanitize_callback' => 'esc_url',
3
  * Plugin Name: Shariff Wrapper
4
  * Plugin URI: https://wordpress.org/plugins-wp/shariff/
5
  * Description: Shariff provides share buttons that respect the privacy of your visitors and follow the General Data Protection Regulation (GDPR).
6
+ * Version: 4.6.6
7
  * Author: Jan-Peter Lambeck & 3UU
8
  * Author URI: https://wordpress.org/plugins/shariff/
9
  * License: MIT
33
  */
34
  function shariff3uu_update() {
35
  // Adjust code version.
36
+ $code_version = '4.6.6';
37
 
38
  // Get basic options.
39
  $shariff3uu_basic = (array) get_option( 'shariff3uu_basic' );
192
  array(
193
  'methods' => 'GET',
194
  'callback' => 'shariff3uu_share_counts',
195
+ #https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/#permissions-callback
196
+ 'permission_callback' => '__return_true',
197
  'args' => array(
198
  'url' => array(
199
  'sanitize_callback' => 'esc_url',