Custom Twitter Feeds - Version 2.0.3

Version Description

  • Fix: For GDPR plugins that Custom Twitter Feeds integrates with, other plugins that also integrate with those GDPR plugins would not work properly when Custom Twitter Feeds was active.
Download this release

Release Info

Developer Craig at Smash Balloon
Plugin Icon 128x128 Custom Twitter Feeds
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

README.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Custom Twitter Feeds (Tweets Widget) ===
2
  Author: Smash Balloon
3
- Contributors: smashballoon, craig-at-smash-balloon
4
  Support Website: http://smashballoon/custom-twitter-feeds/
5
  Tags: Twitter, Twitter feed, Twitter Tweets, Twitter widget, Custom Twitter Feed
6
  Requires at least: 4.1
7
- Tested up to: 6.0
8
- Stable tag: 2.0.2
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -225,15 +225,19 @@ If you're still having trouble displaying your Tweets after trying the common is
225
 
226
  == Screenshots ==
227
 
228
- 1. By default the Custom Twitter Feeds plugin inherits styles from your theme
229
- 2. Display multiple Twitter feeds and customize each one
230
- 3. Custom Twitter Feeds Settings pages
231
- 4. Built in customization settings make customizing your Twitter feed widget easy
232
- 5. Additional styling options are built into the Custom Twitter Feeds plugin
233
- 6. Use handy shortcode options to customize individual Twitter feeds
234
- 7. To display a Twitter feed just copy and paste the shortcode into a Twitter widget or page
 
235
 
236
  == Changelog ==
 
 
 
237
  = 2.0.2 =
238
  * Fix: Added code to help with debugging issues.
239
  * Fix: The descriptions of feed types were incorrect.
1
  === Custom Twitter Feeds (Tweets Widget) ===
2
  Author: Smash Balloon
3
+ Contributors: smashballoon, craig-at-smash-balloon, am, smub
4
  Support Website: http://smashballoon/custom-twitter-feeds/
5
  Tags: Twitter, Twitter feed, Twitter Tweets, Twitter widget, Custom Twitter Feed
6
  Requires at least: 4.1
7
+ Tested up to: 6.1
8
+ Stable tag: 2.0.3
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
225
 
226
  == Screenshots ==
227
 
228
+ 1. Completely customize your feed
229
+ 2. Easily display multiple feeds from different Twitter accounts across your site
230
+ 3. Edit and manage multiple feeds
231
+ 4. Responsive by design
232
+ 5. Quick and easy setup
233
+ 6. Customize with a live preview
234
+ 7. Translation and custom text support
235
+ 8. Embed it anywhere
236
 
237
  == Changelog ==
238
+ = 2.0.3 =
239
+ * Fix: For GDPR plugins that Custom Twitter Feeds integrates with, other plugins that also integrate with those GDPR plugins would not work properly when Custom Twitter Feeds was active.
240
+
241
  = 2.0.2 =
242
  * Fix: Added code to help with debugging issues.
243
  * Fix: The descriptions of feed types were incorrect.
custom-twitter-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Twitter Feeds
4
  Plugin URI: http://smashballoon.com/custom-twitter-feeds
5
  Description: Customizable Twitter feeds for your website
6
- Version: 2.0.2
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  Text Domain: custom-twitter-feeds
@@ -23,7 +23,7 @@ along with this program; if not, write to the Free Software
23
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
25
  define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
26
- define( 'CTF_VERSION', '2.0.2' );
27
  define( 'CTF_TITLE', 'Custom Twitter Feeds' );
28
  define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.min.js?ver=' . CTF_VERSION , __FILE__ ) );
29
  define( 'OAUTH_PROCESSOR_URL', 'https://api.smashballoon.com/twitter-login.php?return_uri=' );
3
  Plugin Name: Custom Twitter Feeds
4
  Plugin URI: http://smashballoon.com/custom-twitter-feeds
5
  Description: Customizable Twitter feeds for your website
6
+ Version: 2.0.3
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  Text Domain: custom-twitter-feeds
23
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
25
  define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
26
+ define( 'CTF_VERSION', '2.0.3' );
27
  define( 'CTF_TITLE', 'Custom Twitter Feeds' );
28
  define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.min.js?ver=' . CTF_VERSION , __FILE__ ) );
29
  define( 'OAUTH_PROCESSOR_URL', 'https://api.smashballoon.com/twitter-login.php?return_uri=' );
inc/CTF_GDPR_Integrations.php CHANGED
@@ -22,8 +22,8 @@ class CTF_GDPR_Integrations {
22
  * @since 1.7/1.12
23
  */
24
  public static function init() {
25
- add_filter( 'wt_cli_third_party_scripts', array( 'CTF_GDPR_Integrations', 'undo_script_blocking' ), 11 );
26
- add_filter( 'cmplz_known_script_tags', array( 'CTF_GDPR_Integrations', 'undo_script_blocking' ), 11 );
27
  }
28
 
29
  /**
@@ -36,17 +36,17 @@ class CTF_GDPR_Integrations {
36
  *
37
  * @since 1.7/1.12
38
  */
39
- public static function undo_script_blocking( $return ) {
40
- $settings = ctf_get_database_settings();
41
- if ( ! CTF_GDPR_Integrations::doing_gdpr( $settings ) ) {
42
- return $return;
43
- } unset( $return['twitter-feed'] );
44
 
45
- remove_filter( 'wt_cli_third_party_scripts', 'wt_cli_twitter_feed_script' );
46
  remove_filter( 'cmplz_known_script_tags', 'cmplz_twitter_feed_script' );
47
 
48
- return $return;
49
- }
50
 
51
  /**
52
  * Whether or not consent plugins that Twitter Feed
@@ -69,7 +69,7 @@ class CTF_GDPR_Integrations {
69
  if ( class_exists( 'COMPLIANZ' ) ) {
70
  return 'Complianz by Really Simple Plugins';
71
  }
72
- if ( function_exists('BorlabsCookieHelper') ) {
73
  return 'Borlabs Cookie by Borlabs';
74
  }
75
 
@@ -94,7 +94,7 @@ class CTF_GDPR_Integrations {
94
  if ( $gdpr === 'yes' ) {
95
  return true;
96
  }
97
- return (CTF_GDPR_Integrations::gdpr_plugins_active() !== false);
98
  }
99
 
100
  /**
22
  * @since 1.7/1.12
23
  */
24
  public static function init() {
25
+ add_filter( 'wt_cli_third_party_scripts', array( 'TwitterFeed\CTF_GDPR_Integrations', 'undo_script_blocking' ), 11 );
26
+ add_filter( 'cmplz_known_script_tags', array( 'TwitterFeed\CTF_GDPR_Integrations', 'undo_script_blocking' ), 11 );
27
  }
28
 
29
  /**
36
  *
37
  * @since 1.7/1.12
38
  */
39
+ public static function undo_script_blocking( $return ) {
40
+ $settings = ctf_get_database_settings();
41
+ if ( ! self::doing_gdpr( $settings ) ) {
42
+ return $return;
43
+ } unset( $return['twitter-feed'] );
44
 
45
+ remove_filter( 'wt_cli_third_party_scripts', 'wt_cli_twitter_feed_script' );
46
  remove_filter( 'cmplz_known_script_tags', 'cmplz_twitter_feed_script' );
47
 
48
+ return $return;
49
+ }
50
 
51
  /**
52
  * Whether or not consent plugins that Twitter Feed
69
  if ( class_exists( 'COMPLIANZ' ) ) {
70
  return 'Complianz by Really Simple Plugins';
71
  }
72
+ if ( function_exists( 'BorlabsCookieHelper' ) ) {
73
  return 'Borlabs Cookie by Borlabs';
74
  }
75
 
94
  if ( $gdpr === 'yes' ) {
95
  return true;
96
  }
97
+ return ( self::gdpr_plugins_active() !== false );
98
  }
99
 
100
  /**