Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest - Version 2.8.7

Version Description

Download this release

Release Info

Developer slickremix
Plugin Icon 128x128 Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest
Version 2.8.7
Comparing to
See all releases

Code changes from version 2.8.6 to 2.8.7

Files changed (3) hide show
  1. feed-them.php +5 -5
  2. includes/feed-them-functions.php +36 -30
  3. readme.txt +6 -2
feed-them.php CHANGED
@@ -7,18 +7,18 @@
7
  * Plugin Name: Feed Them Social - for Twitter feed, Youtube, Pinterest and more
8
  * Plugin URI: https://feedthemsocial.com/
9
  * Description: Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
10
- * Version: 2.8.6
11
  * Author: SlickRemix
12
  * Author URI: https://www.slickremix.com/
13
  * Text Domain: feed-them-social
14
  * Domain Path: /languages
15
  * Requires at least: WordPress 4.0.0
16
- * Tested up to: WordPress 5.4.2
17
- * Stable tag: 2.8.6
18
  * License: GPLv2 or later
19
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
20
  *
21
- * @version 2.8.6
22
  * @package FeedThemSocial/Core
23
  * @copyright Copyright (c) 2012-2020 SlickRemix
24
  *
@@ -31,7 +31,7 @@
31
  *
32
  * Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
33
  */
34
- define( 'FTS_CURRENT_VERSION', '2.8.6' );
35
 
36
  define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
37
 
7
  * Plugin Name: Feed Them Social - for Twitter feed, Youtube, Pinterest and more
8
  * Plugin URI: https://feedthemsocial.com/
9
  * Description: Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
10
+ * Version: 2.8.7
11
  * Author: SlickRemix
12
  * Author URI: https://www.slickremix.com/
13
  * Text Domain: feed-them-social
14
  * Domain Path: /languages
15
  * Requires at least: WordPress 4.0.0
16
+ * Tested up to: WordPress 5.5.0
17
+ * Stable tag: 2.8.7
18
  * License: GPLv2 or later
19
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
20
  *
21
+ * @version 2.8.7
22
  * @package FeedThemSocial/Core
23
  * @copyright Copyright (c) 2012-2020 SlickRemix
24
  *
31
  *
32
  * Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
33
  */
34
+ define( 'FTS_CURRENT_VERSION', '2.8.7' );
35
 
36
  define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
37
 
includes/feed-them-functions.php CHANGED
@@ -811,49 +811,55 @@ class feed_them_social_functions {
811
  * @updated 2.1.4 (fts_fb_page_token)
812
  */
813
  public function my_fts_fb_load_more() {
814
- if ( isset( $_REQUEST['fts_security'], $_REQUEST['fts_time'] ) && ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['fts_security'] ) ), sanitize_text_field( wp_unslash( $_REQUEST['fts_time'] ) ) . 'load-more-nonce' ) ) {
 
 
815
  exit( 'Sorry, You can\'t do that!' );
816
- } else {
817
 
818
- if ( isset( $_REQUEST['feed_name'] ) && 'fts_fb_page_token' === $_REQUEST['feed_name'] ) {
819
- if ( isset( $_REQUEST['next_url'] ) && false === strpos( sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ), 'https://graph.facebook.com/' ) ||
820
- isset( $_REQUEST['next_location_url'] ) && false === strpos( sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ), 'https://graph.facebook.com/' ) ||
821
- isset( $_REQUEST['next_url'] ) && sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ) !== sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ) ||
822
- isset( $_REQUEST['next_location_url'] ) && sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ) !== sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ) ) {
823
 
824
- exit( 'That is not an FTS shortcode!' );
825
- }
 
 
 
 
 
826
  }
 
827
 
828
- if ( isset( $_REQUEST['feed_name'] ) && 'fts_fb_page_token' === $_REQUEST['feed_name'] ||
829
  isset( $_REQUEST['feed_name'] ) && 'fts_twitter' === $_REQUEST['feed_name'] ||
830
  isset( $_REQUEST['feed_name'] ) && 'fts_youtube' === $_REQUEST['feed_name'] ||
831
  isset( $_REQUEST['feed_name'] ) && 'fts_facebook' === $_REQUEST['feed_name'] ||
832
  isset( $_REQUEST['feed_name'] ) && 'fts_facebookbiz' === $_REQUEST['feed_name'] ||
833
  isset( $_REQUEST['feed_name'] ) && 'fts_instagram' === $_REQUEST['feed_name'] ) {
834
 
835
- $feed_atts = isset( $_REQUEST['feed_attributes'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['feed_attributes'] ) ) : '';
836
 
837
- $build_shortcode = '[' . sanitize_text_field( wp_unslash( $_REQUEST['feed_name'] ) ) . '';
838
- foreach ( $feed_atts as $attribute => $value ) {
839
- $build_shortcode .= ' ' . $attribute . '=' . $value;
840
- }
841
-
842
- if ( 'fts_twitter' === $_REQUEST['feed_name'] ) {
843
- $loadmore_count = isset( $_REQUEST['loadmore_count'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['loadmore_count'] ) ) : '';
844
- $build_shortcode .= ' ' . $loadmore_count . ']';
845
- } elseif ( 'fts_youtube' === $_REQUEST['feed_name'] ) {
846
- $loadmore_count = isset( $_REQUEST['loadmore_count'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['loadmore_count'] ) ) : '';
847
- $build_shortcode .= ' ' . $loadmore_count . ']';
848
- } else {
849
- $build_shortcode .= ' ]';
850
- }
851
-
852
- echo do_shortcode( $build_shortcode );
853
 
 
 
 
 
 
 
854
  } else {
855
- exit( esc_html( 'That is not an FTS shortcode!' ) );
856
  }
 
 
 
 
 
857
  }
858
  die();
859
  }
@@ -1089,7 +1095,7 @@ class feed_them_social_functions {
1089
  'fb_events_title_size',
1090
  'fb_events_map_link_color',
1091
  'fb_hide_shared_by_etc_text',
1092
- 'fb_title_htag',
1093
  'fb_title_htag_size',
1094
  'fts_facebook_custom_api_token_biz',
1095
  'fb_reviews_text_color',
@@ -3494,4 +3500,4 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
3494
  }
3495
 
3496
  } // end class
3497
- ?>
811
  * @updated 2.1.4 (fts_fb_page_token)
812
  */
813
  public function my_fts_fb_load_more() {
814
+
815
+ // Check security token is set.
816
+ if ( ! isset( $_REQUEST['fts_security'], $_REQUEST['fts_time'] ) ) {
817
  exit( 'Sorry, You can\'t do that!' );
818
+ }
819
 
820
+ // Verify Nonce Security.
821
+ if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['fts_security'] ) ) , sanitize_text_field( wp_unslash( $_REQUEST['fts_time'] ) ) . 'load-more-nonce' ) ) {
822
+ exit( 'Sorry, You can\'t do that!' );
823
+ }
 
824
 
825
+ if ( isset( $_REQUEST['feed_name'] ) && 'fts_fb_page_token' === $_REQUEST['feed_name'] ) {
826
+ if ( isset( $_REQUEST['next_url'] ) && false === strpos( sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ), 'https://graph.facebook.com/' ) ||
827
+ isset( $_REQUEST['next_location_url'] ) && false === strpos( sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ), 'https://graph.facebook.com/' ) ||
828
+ isset( $_REQUEST['next_url'] ) && sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ) !== sanitize_text_field( wp_unslash( $_REQUEST['next_url'] ) ) ||
829
+ isset( $_REQUEST['next_location_url'] ) && sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ) !== sanitize_text_field( wp_unslash( $_REQUEST['next_location_url'] ) ) ) {
830
+
831
+ exit( 'That is not an FTS shortcode!' );
832
  }
833
+ }
834
 
835
+ if ( isset( $_REQUEST['feed_name'] ) && 'fts_fb_page_token' === $_REQUEST['feed_name'] ||
836
  isset( $_REQUEST['feed_name'] ) && 'fts_twitter' === $_REQUEST['feed_name'] ||
837
  isset( $_REQUEST['feed_name'] ) && 'fts_youtube' === $_REQUEST['feed_name'] ||
838
  isset( $_REQUEST['feed_name'] ) && 'fts_facebook' === $_REQUEST['feed_name'] ||
839
  isset( $_REQUEST['feed_name'] ) && 'fts_facebookbiz' === $_REQUEST['feed_name'] ||
840
  isset( $_REQUEST['feed_name'] ) && 'fts_instagram' === $_REQUEST['feed_name'] ) {
841
 
842
+ $feed_atts = isset( $_REQUEST['feed_attributes'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['feed_attributes'] ) ) : '';
843
 
844
+ $build_shortcode = '[' . sanitize_text_field( wp_unslash( $_REQUEST['feed_name'] ) ) . '';
845
+ foreach ( $feed_atts as $attribute => $value ) {
846
+ $build_shortcode .= ' ' . $attribute . '=' . $value;
847
+ }
 
 
 
 
 
 
 
 
 
 
 
 
848
 
849
+ if ( 'fts_twitter' === $_REQUEST['feed_name'] ) {
850
+ $loadmore_count = isset( $_REQUEST['loadmore_count'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['loadmore_count'] ) ) : '';
851
+ $build_shortcode .= ' ' . $loadmore_count . ']';
852
+ } elseif ( 'fts_youtube' === $_REQUEST['feed_name'] ) {
853
+ $loadmore_count = isset( $_REQUEST['loadmore_count'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['loadmore_count'] ) ) : '';
854
+ $build_shortcode .= ' ' . $loadmore_count . ']';
855
  } else {
856
+ $build_shortcode .= ' ]';
857
  }
858
+
859
+ echo do_shortcode( $build_shortcode );
860
+
861
+ } else {
862
+ exit( esc_html( 'That is not an FTS shortcode!' ) );
863
  }
864
  die();
865
  }
1095
  'fb_events_title_size',
1096
  'fb_events_map_link_color',
1097
  'fb_hide_shared_by_etc_text',
1098
+ 'fb_title_htag',
1099
  'fb_title_htag_size',
1100
  'fts_facebook_custom_api_token_biz',
1101
  'fb_reviews_text_color',
3500
  }
3501
 
3502
  } // end class
3503
+ ?>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: slickremix, slickchris
3
  Tags: Facebook, Instagram, Twitter, YouTube, Feed
4
  Requires at least: 3.6.0
5
- Tested up to: 5.4.2
6
- Stable tag: 2.8.6
7
  License: GPLv2 or later
8
 
9
  Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
@@ -75,6 +75,10 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
75
  * Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
76
 
77
  == Changelog ==
 
 
 
 
78
  = Version 2.8.6 Thursday, July 23rd, 2020 =
79
  * NEW: Facebook Feed: All target="_blank" a tag elements now have rel="noreferrer" for better SEO results.
80
  * NEW: Facebook Options: Option to change the main page title htag (h1-h6) and font size.
2
  Contributors: slickremix, slickchris
3
  Tags: Facebook, Instagram, Twitter, YouTube, Feed
4
  Requires at least: 3.6.0
5
+ Tested up to: 5.5
6
+ Stable tag: 2.8.7
7
  License: GPLv2 or later
8
 
9
  Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
75
  * Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
76
 
77
  == Changelog ==
78
+ = Version 2.8.7 Tuesday, August 25th, 2020 =
79
+ * TESTED: Tested plugin with WordPress version 5.5.0.
80
+ * FIX: Security Fixes.
81
+
82
  = Version 2.8.6 Thursday, July 23rd, 2020 =
83
  * NEW: Facebook Feed: All target="_blank" a tag elements now have rel="noreferrer" for better SEO results.
84
  * NEW: Facebook Options: Option to change the main page title htag (h1-h6) and font size.