Custom Facebook Feed - Version 1.4.1

Version Description

  • Fix: Set all parts of the feed to display by default on activation
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
3
  Tags: facebook, custom, customizable, feed, seo, search engine, responsive, mobile, shortcode, social, status
4
  Requires at least: 3.0
5
  Tested up to: 3.5.1
6
- Stable tag: 1.4.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -76,6 +76,9 @@ It sure is. Unlike other Facebook plugins which use iframes to embed your feed i
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.4.0 =
80
  * Major Update!
81
  * New: Loads of new customization options for your feed
3
  Tags: facebook, custom, customizable, feed, seo, search engine, responsive, mobile, shortcode, social, status
4
  Requires at least: 3.0
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.4.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 1.4.1 =
80
+ * Fix: Set all parts of the feed to display by default on activation
81
+
82
  = 1.4.0 =
83
  * Major Update!
84
  * New: Loads of new customization options for your feed
custom-facebook-feed-admin.php CHANGED
@@ -163,7 +163,6 @@ function cff_style_page() {
163
 
164
  //Save layout options in an array
165
  add_option( 'cff_style_settings', $options );
166
- $options = get_option('cff_style_settings');
167
  $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
168
  //Set the page variables
169
 
163
 
164
  //Save layout options in an array
165
  add_option( 'cff_style_settings', $options );
 
166
  $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
167
  //Set the page variables
168
 
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: 1.4.0
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
@@ -514,6 +514,23 @@ function cff_add_my_stylesheet() {
514
  add_filter('widget_text', 'do_shortcode');
515
 
516
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  //Uninstall
518
  function cff_uninstall()
519
  {
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: 1.4.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
514
  add_filter('widget_text', 'do_shortcode');
515
 
516
 
517
+ function cff_activate() {
518
+ $options = get_option('cff_style_settings');
519
+
520
+ //Show all parts of the feed by default on activation
521
+ $options[ 'cff_show_text' ] = true;
522
+ $options[ 'cff_show_desc' ] = true;
523
+ $options[ 'cff_show_date' ] = true;
524
+ $options[ 'cff_show_event_title' ] = true;
525
+ $options[ 'cff_show_event_details' ] = true;
526
+ $options[ 'cff_show_link' ] = true;
527
+ $options[ 'cff_show_like_box' ] = true;
528
+
529
+ update_option( 'cff_style_settings', $options );
530
+ }
531
+ register_activation_hook( __FILE__, 'cff_activate' );
532
+
533
+
534
  //Uninstall
535
  function cff_uninstall()
536
  {