Shariff Wrapper - Version 4.6.5

Version Description

  • updated to Facebook Graph API v6.0
  • fixed minor bug
  • tested for WordPress 5.4
Download this release

Release Info

Developer starguide
Plugin Icon 128x128 Shariff Wrapper
Version 4.6.5
Comparing to
See all releases

Code changes from version 4.6.4 to 4.6.5

Files changed (3) hide show
  1. readme.txt +8 -3
  2. services/shariff-facebook.php +1 -1
  3. shariff.php +4 -3
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.3
7
- Stable tag: 4.6.4
8
  License: MIT
9
  License URI: http://opensource.org/licenses/mit
10
 
@@ -144,12 +144,17 @@ These are bugs or unexpected glitches that we know of, but that do not have an i
144
 
145
  == Changelog ==
146
 
 
 
 
 
 
147
  = 4.6.4 =
148
  - fixed the settings link on the plugin overview page for certain environments (thanks to @midgard)
149
  - updated to Facebook Graph API v5.0
150
  - updated the WhatsApp link to swap url and title for a working image preview
151
  - removed nofollow from the info button
152
- - remvoed Xing share counts due to Xing disabling the API
153
 
154
  = 4.6.3 =
155
  - updated the WhatsApp share link to work with all devices again (thanks to @hanshansenxxx)
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
 
144
 
145
  == Changelog ==
146
 
147
+ = 4.6.5 =
148
+ - updated to Facebook Graph API v6.0
149
+ - fixed minor bug
150
+ - tested for WordPress 5.4
151
+
152
  = 4.6.4 =
153
  - fixed the settings link on the plugin overview page for certain environments (thanks to @midgard)
154
  - updated to Facebook Graph API v5.0
155
  - updated the WhatsApp link to swap url and title for a working image preview
156
  - removed nofollow from the info button
157
+ - removed Xing share counts due to Xing disabling the API
158
 
159
  = 4.6.3 =
160
  - updated the WhatsApp share link to work with all devices again (thanks to @hanshansenxxx)
services/shariff-facebook.php CHANGED
@@ -70,7 +70,7 @@ if ( isset( $frontend ) && 1 === $frontend ) {
70
  // Create the FB access token.
71
  $fb_token = $fb_app_id . '|' . $fb_app_secret;
72
  // Use the token to get the share counts.
73
- $facebook = sanitize_text_field( wp_remote_retrieve_body( wp_remote_get( 'https://graph.facebook.com/v5.0/?access_token=' . $fb_token . '&fields=engagement&id=' . $post_url ) ) );
74
  // Decode the json response.
75
  $facebook_json = json_decode( $facebook, true );
76
  // Set nofbid in case the page has not yet been crawled by Facebook and no ID is provided.
70
  // Create the FB access token.
71
  $fb_token = $fb_app_id . '|' . $fb_app_secret;
72
  // Use the token to get the share counts.
73
+ $facebook = sanitize_text_field( wp_remote_retrieve_body( wp_remote_get( 'https://graph.facebook.com/v6.0/?access_token=' . $fb_token . '&fields=engagement&id=' . $post_url ) ) );
74
  // Decode the json response.
75
  $facebook_json = json_decode( $facebook, true );
76
  // Set nofbid in case the page has not yet been crawled by Facebook and no ID is provided.
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.4
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.4';
37
 
38
  // Get basic options.
39
  $shariff3uu_basic = (array) get_option( 'shariff3uu_basic' );
@@ -1330,8 +1330,9 @@ function shariff3uu_render( $atts ) {
1330
  $output .= 'noopener ';
1331
  }
1332
  if ( 'info' !== $service ) {
1333
- $output .= 'nofollow"';
1334
  }
 
1335
  }
1336
  $output .= ' class="shariff-link';
1337
 
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
  */
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' );
1330
  $output .= 'noopener ';
1331
  }
1332
  if ( 'info' !== $service ) {
1333
+ $output .= 'nofollow';
1334
  }
1335
+ $output .= '"';
1336
  }
1337
  $output .= ' class="shariff-link';
1338