Custom Facebook Feed - Version 2.18.1

Version Description

  • Fix: Fixed an issue with the integration with the Complianz plugin
  • Fix: Resolved a PHP warning related to the preg_replace_callback function which was displayed under certain conditions
  • Fix: Resolved a PHP deprecation notice related to the strpos function in PHP 7.3
Download this release

Release Info

Developer smashballoon
Plugin Icon 128x128 Custom Facebook Feed
Version 2.18.1
Comparing to
See all releases

Code changes from version 2.18 to 2.18.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Facebook, Facebook feed, Facebook posts, Facebook group, Facebook page
4
  Requires at least: 3.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
- Stable tag: 2.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -262,6 +262,11 @@ The most common reason for this is that an add-on or extension you have installe
262
  9. It's super easy to display your Facebook feed in any page or post
263
 
264
  == Changelog ==
 
 
 
 
 
265
  = 2.18 =
266
  * New: The plugin code has been completely refactored to improve performance and maintainability. If you experience any issues with this update then please open a support ticket [here](https://wordpress.org/support/plugin/custom-facebook-feed/) so that we can address it right away. Thank you!
267
  * New: Integrations with popular GDPR cookie consent solutions added: Cookie Notice by dFactory, GDPR Cookie Consent by WebToffee, Cookiebot by Cybot A/S, Complianz by Really Simple Plugins, and Borlabs Cookie by Borlabs. See the GDPR setting in the following location for more information: Facebook Feed > Customize > Misc > GDPR.
4
  Requires at least: 3.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
+ Stable tag: 2.18.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
262
  9. It's super easy to display your Facebook feed in any page or post
263
 
264
  == Changelog ==
265
+ = 2.18.1 =
266
+ * Fix: Fixed an issue with the integration with the Complianz plugin
267
+ * Fix: Resolved a PHP warning related to the preg_replace_callback function which was displayed under certain conditions
268
+ * Fix: Resolved a PHP deprecation notice related to the strpos function in PHP 7.3
269
+
270
  = 2.18 =
271
  * New: The plugin code has been completely refactored to improve performance and maintainability. If you experience any issues with this update then please open a support ticket [here](https://wordpress.org/support/plugin/custom-facebook-feed/) so that we can address it right away. Thank you!
272
  * New: Integrations with popular GDPR cookie consent solutions added: Cookie Notice by dFactory, GDPR Cookie Consent by WebToffee, Cookiebot by Cybot A/S, Complianz by Really Simple Plugins, and Borlabs Cookie by Borlabs. See the GDPR setting in the following location for more information: Facebook Feed > Customize > Misc > GDPR.
assets/js/cff-scripts.js CHANGED
@@ -273,8 +273,7 @@ if(!cff_js_exists){
273
 
274
  jQuery('.cff-wrapper').each(function(){
275
  var $cff = jQuery(this).find('#cff');
276
- var $cffElm = jQuery(this);
277
-
278
  setTimeout(function(){
279
  var consent = checkConsent( $cffElm );
280
  if(consent){
273
 
274
  jQuery('.cff-wrapper').each(function(){
275
  var $cff = jQuery(this).find('#cff');
276
+ var $cffElm = jQuery(this);
 
277
  setTimeout(function(){
278
  var consent = checkConsent( $cffElm );
279
  if(consent){
custom-facebook-feed.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Smash Balloon Custom Facebook Feed
4
  Plugin URI: https://smashballoon.com/custom-facebook-feed
5
  Description: Add completely customizable Facebook feeds to your WordPress site
6
- Version: 2.18
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
10
  Text Domain: custom-facebook-feed
11
  */
12
  /*
13
- Copyright 2020 Smash Balloon LLC (email : hey@smashballoon.com)
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
16
  the Free Software Foundation; either version 2 of the License, or
@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
 
28
- define('CFFVER', '2.18');
29
 
30
  // Db version.
31
  if ( ! defined( 'CFF_DBVERSION' ) ) {
3
  Plugin Name: Smash Balloon Custom Facebook Feed
4
  Plugin URI: https://smashballoon.com/custom-facebook-feed
5
  Description: Add completely customizable Facebook feeds to your WordPress site
6
+ Version: 2.18.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
10
  Text Domain: custom-facebook-feed
11
  */
12
  /*
13
+ Copyright 2021 Smash Balloon LLC (email : hey@smashballoon.com)
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
16
  the Free Software Foundation; either version 2 of the License, or
25
  */
26
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
 
28
+ define('CFFVER', '2.18.1');
29
 
30
  // Db version.
31
  if ( ! defined( 'CFF_DBVERSION' ) ) {
inc/CFF_Utils.php CHANGED
@@ -459,7 +459,9 @@ class CFF_Utils{
459
  * @since X.X.X
460
  */
461
  static function stripos($haystack, $needle){
462
- return strpos($haystack, stristr( $haystack, $needle ));
 
 
463
  }
464
 
465
 
459
  * @since X.X.X
460
  */
461
  static function stripos($haystack, $needle){
462
+ if( empty( stristr( $haystack, $needle ) ) )
463
+ return false;
464
+ return strpos($haystack, stristr( $haystack, $needle ) );
465
  }
466
 
467
 
inc/Custom_Facebook_Feed.php CHANGED
@@ -181,7 +181,8 @@ final class Custom_Facebook_Feed{
181
  add_action( 'wp_head', [ self::$instance, 'cff_custom_css' ] );
182
  add_action( 'wp_footer', [ self::$instance, 'cff_js' ] );
183
 
184
- add_filter( 'cron_schedules', [ self::$instance, 'cff_cron_custom_interval' ] );
 
185
 
186
  register_activation_hook( CFF_FILE, [ self::$instance, 'cff_activate' ] );
187
  register_deactivation_hook( CFF_FILE, [ self::$instance, 'cff_deactivate' ] );
181
  add_action( 'wp_head', [ self::$instance, 'cff_custom_css' ] );
182
  add_action( 'wp_footer', [ self::$instance, 'cff_js' ] );
183
 
184
+ add_filter( 'cron_schedules', [ self::$instance, 'cff_cron_custom_interval' ] );
185
+ add_filter('widget_text', 'do_shortcode');
186
 
187
  register_activation_hook( CFF_FILE, [ self::$instance, 'cff_activate' ] );
188
  register_deactivation_hook( CFF_FILE, [ self::$instance, 'cff_deactivate' ] );