Custom Facebook Feed - Version 2.12.2

Version Description

  • Fix: Fixed a JavaScript error in the admin caused by the previous update. Apologies for any inconvenience.
Download this release

Release Info

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

Code changes from version 2.12.1 to 2.12.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook page
4
  Requires at least: 3.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
- Stable tag: 2.12.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -255,6 +255,9 @@ The most common reason for this is that an add-on or extension you have installe
255
  9. It's super easy to display your Facebook feed in any page or post
256
 
257
  == Changelog ==
 
 
 
258
  = 2.12.1 =
259
  * Fix: Fixed an issue with post date timezones due to changes in the WordPress 5.3 update
260
  * Fix: Fixed a rare issue where a JavaScript error would occur in the WordPress admin if a Facebook account was manually connected and the Page ID used was the full URL
4
  Requires at least: 3.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
+ Stable tag: 2.12.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
255
  9. It's super easy to display your Facebook feed in any page or post
256
 
257
  == Changelog ==
258
+ = 2.12.2 =
259
+ * Fix: Fixed a JavaScript error in the admin caused by the previous update. Apologies for any inconvenience.
260
+
261
  = 2.12.1 =
262
  * Fix: Fixed an issue with post date timezones due to changes in the WordPress 5.3 update
263
  * Fix: Fixed a rare issue where a JavaScript error would occur in the WordPress admin if a Facebook account was manually connected and the Page ID used was the full URL
custom-facebook-feed.php CHANGED
@@ -3,7 +3,7 @@
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.12.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
@@ -24,7 +24,7 @@ along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
- define('CFFVER', '2.12.1');
28
 
29
  // Db version.
30
  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.12.2
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
+ define('CFFVER', '2.12.2');
28
 
29
  // Db version.
30
  if ( ! defined( 'CFF_DBVERSION' ) ) {
js/cff-admin-scripts.js CHANGED
@@ -641,6 +641,8 @@ jQuery(document).ready(function($) {
641
  }
642
  //Make sure ID is a valid string
643
  function cffValidateID(id){
 
 
644
  //Remove slashes from end
645
  id = cffStripURLParts( id.replace(/\/$/, "").trim() );
646
  //Only return if it contains numbers/letters
641
  }
642
  //Make sure ID is a valid string
643
  function cffValidateID(id){
644
+ if( typeof id === 'undefined' || id == '' ) return;
645
+
646
  //Remove slashes from end
647
  id = cffStripURLParts( id.replace(/\/$/, "").trim() );
648
  //Only return if it contains numbers/letters