WD Facebook Feed – Custom Facebook Feed Plugin - Version 1.1.19

Version Description

  • Fixed: Double quote in the feed title.
  • Fixed: Issue with hash in post URL.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 WD Facebook Feed – Custom Facebook Feed Plugin
Version 1.1.19
Comparing to
See all releases

Code changes from version 1.1.18 to 1.1.19

facebook-feed-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: 10Web Social Feed
5
  * Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
6
  * Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
- * Version: 1.1.18
8
  * Author: 10Web
9
  * Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -15,7 +15,7 @@ define( 'WD_FFWD_URL', plugins_url( plugin_basename( dirname( __FILE__ ) ) ) );
15
  define( 'WD_FB_PREFIX', 'ffwd' );
16
  define( 'WD_FB_IS_FREE', TRUE );
17
  if (! defined( 'FFWD_VERSION' ) ){
18
- define ('FFWD_VERSION',"1.1.18");
19
  }
20
 
21
  add_action('admin_notices', 'ffwd_login_notice');
4
  * Plugin Name: 10Web Social Feed
5
  * Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
6
  * Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
+ * Version: 1.1.19
8
  * Author: 10Web
9
  * Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
15
  define( 'WD_FB_PREFIX', 'ffwd' );
16
  define( 'WD_FB_IS_FREE', TRUE );
17
  if (! defined( 'FFWD_VERSION' ) ){
18
+ define ('FFWD_VERSION',"1.1.19");
19
  }
20
 
21
  add_action('admin_notices', 'ffwd_login_notice');
framework/WDFacebookFeed.php CHANGED
@@ -175,6 +175,7 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? sanitiz
175
 
176
  ////////////////////////
177
  $name = ((isset($_POST['name'])) ? sanitize_text_field(stripslashes($_POST['name'])) : '');
 
178
  $page_access_token = ((isset($_POST['page_access_token'])) ? sanitize_text_field(stripslashes($_POST['page_access_token'])) : '');
179
 
180
  // $new_access_token = self::update_page_access_token($page_access_token);
@@ -1087,6 +1088,7 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? sanitiz
1087
  public static function save_db() {
1088
  global $wpdb;
1089
  $name = ((isset($_POST['name'])) ? sanitize_text_field(stripslashes($_POST['name'])) : '');
 
1090
  $page_access_token = ((isset($_POST['page_access_token'])) ? sanitize_text_field(stripslashes($_POST['page_access_token'])) : '');
1091
  $update_mode = ((isset($_POST['update_mode'])) ? sanitize_text_field(stripslashes($_POST['update_mode'])) : '');
1092
  // Collapse content types (multiple when content type is timeline, one when specific)
175
 
176
  ////////////////////////
177
  $name = ((isset($_POST['name'])) ? sanitize_text_field(stripslashes($_POST['name'])) : '');
178
+ $name = str_replace(array("'", '"'), "" , $name);
179
  $page_access_token = ((isset($_POST['page_access_token'])) ? sanitize_text_field(stripslashes($_POST['page_access_token'])) : '');
180
 
181
  // $new_access_token = self::update_page_access_token($page_access_token);
1088
  public static function save_db() {
1089
  global $wpdb;
1090
  $name = ((isset($_POST['name'])) ? sanitize_text_field(stripslashes($_POST['name'])) : '');
1091
+ $name = str_replace(array("'", '"'), "" , $name);
1092
  $page_access_token = ((isset($_POST['page_access_token'])) ? sanitize_text_field(stripslashes($_POST['page_access_token'])) : '');
1093
  $update_mode = ((isset($_POST['update_mode'])) ? sanitize_text_field(stripslashes($_POST['update_mode'])) : '');
1094
  // Collapse content types (multiple when content type is timeline, one when specific)
frontend/models/FFWDModelBlog_style.php CHANGED
@@ -162,7 +162,7 @@ class FFWDModelBlog_style extends FFWDModelMain {
162
  $str = preg_replace("/\n/", " \n", $str);
163
  $str = explode(' ', $str);
164
  for($i=0; $i<count($str); $i++) {
165
- if(strpos($str[$i], '#') !== false) {
166
  $hashtag = str_replace('#', '<a class="ffwd_hashtag_'.$ffwd.'" target="_blank" href="https://www.facebook.com/hashtag/', $str[$i]);
167
  $word = explode('#', $str[$i]);
168
  $word = '#' . $word[1];
162
  $str = preg_replace("/\n/", " \n", $str);
163
  $str = explode(' ', $str);
164
  for($i=0; $i<count($str); $i++) {
165
+ if(strpos($str[$i], '#') === 0) {
166
  $hashtag = str_replace('#', '<a class="ffwd_hashtag_'.$ffwd.'" target="_blank" href="https://www.facebook.com/hashtag/', $str[$i]);
167
  $word = explode('#', $str[$i]);
168
  $word = '#' . $word[1];
frontend/models/FFWDModelPopupBox.php CHANGED
@@ -191,7 +191,7 @@ class FFWDModelPopupBox {
191
  $str = preg_replace("/\n/", " \n", $str);
192
  $str = explode(' ', $str);
193
  for($i=0; $i<count($str); $i++) {
194
- if(strpos($str[$i], '#') !== false) {
195
  $hashtag = str_replace('#', '<a class="ffwd_hashtag" target="_blank" href="https://www.facebook.com/hashtag/', $str[$i]);
196
  $word = explode('#', $str[$i]);
197
  $word = '#' . $word[1];
191
  $str = preg_replace("/\n/", " \n", $str);
192
  $str = explode(' ', $str);
193
  for($i=0; $i<count($str); $i++) {
194
+ if(strpos($str[$i], '#') === 0) {
195
  $hashtag = str_replace('#', '<a class="ffwd_hashtag" target="_blank" href="https://www.facebook.com/hashtag/', $str[$i]);
196
  $word = explode('#', $str[$i]);
197
  $word = '#' . $word[1];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: customizable facebook feed, facebook, facebook feed, facebook group, faceb
4
  Requires at least: 3.4
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
- Stable tag: 1.1.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -105,6 +105,10 @@ The plugin uses Facebook API to get public data from Facebook. All the received
105
 
106
  == Changelog ==
107
 
 
 
 
 
108
  = 1.1.18 =
109
  * Removed: Banner to install Image optimizer.
110
 
4
  Requires at least: 3.4
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
+ Stable tag: 1.1.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
105
 
106
  == Changelog ==
107
 
108
+ = 1.1.19 =
109
+ * Fixed: Double quote in the feed title.
110
+ * Fixed: Issue with hash in post URL.
111
+
112
  = 1.1.18 =
113
  * Removed: Banner to install Image optimizer.
114