Custom Facebook Feed - Version 2.3.3

Version Description

  • Fix: Removed a PHP notice which was missed in the last update. Apologies for the two updates in quick succession.
Download this release

Release Info

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

Code changes from version 2.3.2 to 2.3.3

Files changed (2) hide show
  1. README.txt +4 -1
  2. custom-facebook-feed.php +16 -7
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
  Requires at least: 3.0
5
  Tested up to: 4.1.1
6
- Stable tag: 2.3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -271,6 +271,9 @@ Credit iMarketing Factory - "The Importance of Facebook for Small Businesses"
271
  9. It's super easy to display your Facebook feed in any page or post
272
 
273
  == Changelog ==
 
 
 
274
  = 2.3.2 =
275
  * Fix: Fixed some stray PHP notices which were inadvertently introduced in a recent update
276
  * Tweak: Added an option to not load the icon font included in the plugin
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
  Requires at least: 3.0
5
  Tested up to: 4.1.1
6
+ Stable tag: 2.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
271
  9. It's super easy to display your Facebook feed in any page or post
272
 
273
  == Changelog ==
274
+ = 2.3.3 =
275
+ * Fix: Removed a PHP notice which was missed in the last update. Apologies for the two updates in quick succession.
276
+
277
  = 2.3.2 =
278
  * Fix: Fixed some stray PHP notices which were inadvertently introduced in a recent update
279
  * Tweak: Added an option to not load the icon font included in the plugin
custom-facebook-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Facebook Feed
4
  Plugin URI: http://smashballoon.com/custom-facebook-feed
5
  Description: Add a completely customizable Facebook feed to your WordPress site
6
- Version: 2.3.2
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  //Include admin
26
  include dirname( __FILE__ ) .'/custom-facebook-feed-admin.php';
27
 
28
- define('CFFVER', '2.3.2');
29
 
30
  // Add shortcodes
31
  add_shortcode('custom-facebook-feed', 'display_cff');
@@ -1788,13 +1788,22 @@ function cff_add_my_stylesheet() {
1788
  wp_enqueue_style( 'cff' );
1789
 
1790
  $options = get_option('cff_style_settings');
1791
- if( $options[ 'cff_font_source' ] == 'none' ){
1792
- //Do nothing
1793
- } else if( $options[ 'cff_font_source' ] == 'local' ){
1794
- wp_enqueue_style( 'cff-font-awesome', plugins_url('css/font-awesome.min.css', __FILE__), array(), '4.3.0' );
1795
- } else {
1796
  wp_enqueue_style( 'cff-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), '4.2.0' );
 
 
 
 
 
 
 
 
 
 
1797
  }
 
 
1798
  }
1799
  //Enqueue scripts
1800
  add_action( 'wp_enqueue_scripts', 'cff_scripts_method' );
3
  Plugin Name: Custom Facebook Feed
4
  Plugin URI: http://smashballoon.com/custom-facebook-feed
5
  Description: Add a completely customizable Facebook feed to your WordPress site
6
+ Version: 2.3.3
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
25
  //Include admin
26
  include dirname( __FILE__ ) .'/custom-facebook-feed-admin.php';
27
 
28
+ define('CFFVER', '2.3.3');
29
 
30
  // Add shortcodes
31
  add_shortcode('custom-facebook-feed', 'display_cff');
1788
  wp_enqueue_style( 'cff' );
1789
 
1790
  $options = get_option('cff_style_settings');
1791
+
1792
+ if( !isset( $options[ 'cff_font_source' ] ) ){
 
 
 
1793
  wp_enqueue_style( 'cff-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), '4.2.0' );
1794
+ } else {
1795
+
1796
+ if( $options[ 'cff_font_source' ] == 'none' ){
1797
+ //Do nothing
1798
+ } else if( $options[ 'cff_font_source' ] == 'local' ){
1799
+ wp_enqueue_style( 'cff-font-awesome', plugins_url('css/font-awesome.min.css', __FILE__), array(), '4.3.0' );
1800
+ } else {
1801
+ wp_enqueue_style( 'cff-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), '4.2.0' );
1802
+ }
1803
+
1804
  }
1805
+
1806
+
1807
  }
1808
  //Enqueue scripts
1809
  add_action( 'wp_enqueue_scripts', 'cff_scripts_method' );