WD Facebook Feed – Custom Facebook Feed Plugin - Version 1.1.27

Version Description

  • Fixed: Conflict with WP 5.5 version.
  • Fixed: Security issue.
Download this release

Release Info

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

Code changes from version 1.1.26 to 1.1.27

admin/models/FFWDModelInfo_ffwd.php CHANGED
@@ -141,8 +141,8 @@ class FFWDModelInfo_ffwd {
141
  "d/m/Y" => " 10/03/2015",
142
  "Y.m.d" => " 2015.03.10",
143
  );
144
-
145
  public $pages_list = array();
 
146
  ////////////////////////////////////////////////////////////////////////////////////////
147
  // Constructor & Destructor //
148
  ////////////////////////////////////////////////////////////////////////////////////////
@@ -172,10 +172,10 @@ class FFWDModelInfo_ffwd {
172
  else {
173
  $where = " WHERE author>=0 ";
174
  }
175
- $where .= ((isset($_POST['search_value'])) ? ' AND filename LIKE "%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%"' : '');
176
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field(stripslashes($_POST['asc_or_desc'])) : 'asc');
177
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
178
- $image_order_by = ' ORDER BY `' . ((isset($_POST['image_order_by']) && sanitize_text_field(stripslashes($_POST['image_order_by'])) != '') ? sanitize_text_field(stripslashes($_POST['image_order_by'])) : 'order') . '` ' . $asc_or_desc;
179
  if (isset($_POST['page_number']) && $_POST['page_number']) {
180
  $limit = ((int) sanitize_text_field($_POST['page_number']) - 1) * $this->per_page;
181
  }
@@ -277,10 +277,10 @@ class FFWDModelInfo_ffwd {
277
 
278
  public function get_rows_data() {
279
  global $wpdb;
280
- $where = ((isset($_POST['search_value'])) ? ' WHERE name LIKE "%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%"' : '');
281
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field(stripslashes($_POST['asc_or_desc'])) : 'asc');
282
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
283
- $order_by = ' ORDER BY `' . ((isset($_POST['order_by']) && sanitize_text_field(stripslashes($_POST['order_by'])) != '') ? sanitize_text_field(stripslashes($_POST['order_by'])) : 'order') . '` ' . $asc_or_desc;
284
  if (isset($_POST['page_number']) && $_POST['page_number']) {
285
  $limit = ((int) sanitize_text_field($_POST['page_number']) - 1) * $this->per_page;
286
  }
@@ -411,7 +411,7 @@ $row->album_image_max_columns= 5;
411
 
412
  public function page_nav() {
413
  global $wpdb;
414
- $where = ((isset($_POST['search_value']) && (sanitize_text_field(stripslashes($_POST['search_value'])) != '')) ? ' WHERE name LIKE "%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%"' : '');
415
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "wd_fb_info " . $where;
416
  $total = $wpdb->get_var($query);
417
  $page_nav['total'] = $total;
@@ -433,7 +433,7 @@ $row->album_image_max_columns= 5;
433
  else {
434
  $where = " AND author>=0 ";
435
  }
436
- $where .= ((isset($_POST['search_value']) && (sanitize_text_field(stripslashes($_POST['search_value'])) != '')) ? ' AND filename LIKE "%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%"' : '');
437
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "bwg_image WHERE gallery_id='" . $gallery_id . "' " . $where;
438
  $total = $wpdb->get_var($query);
439
  $page_nav['total'] = $total;
141
  "d/m/Y" => " 10/03/2015",
142
  "Y.m.d" => " 2015.03.10",
143
  );
 
144
  public $pages_list = array();
145
+
146
  ////////////////////////////////////////////////////////////////////////////////////////
147
  // Constructor & Destructor //
148
  ////////////////////////////////////////////////////////////////////////////////////////
172
  else {
173
  $where = " WHERE author>=0 ";
174
  }
175
+ $where .= ((isset($_POST['search_value'])) ? $wpdb->prepare(' AND filename LIKE %s', '%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%' ) : '');
176
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field(stripslashes($_POST['asc_or_desc'])) : 'asc');
177
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
178
+ $image_order_by = $wpdb->prepare(' ORDER BY ' . '%s' . ' ' . $asc_or_desc, ((isset($_POST['image_order_by']) && sanitize_text_field(stripslashes($_POST['image_order_by'])) != '') ? sanitize_text_field(stripslashes($_POST['image_order_by'])) : 'order'));
179
  if (isset($_POST['page_number']) && $_POST['page_number']) {
180
  $limit = ((int) sanitize_text_field($_POST['page_number']) - 1) * $this->per_page;
181
  }
277
 
278
  public function get_rows_data() {
279
  global $wpdb;
280
+ $where = ((isset($_POST['search_value'])) ? $wpdb->prepare(' WHERE name LIKE %s', '%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%') : '');
281
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field(stripslashes($_POST['asc_or_desc'])) : 'asc');
282
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
283
+ $order_by = $wpdb->prepare(' ORDER BY ' . '%s' . ' ' . $asc_or_desc, ((isset($_POST['order_by']) && sanitize_text_field(stripslashes($_POST['order_by'])) != '') ? sanitize_text_field(stripslashes($_POST['order_by'])) : 'order'));
284
  if (isset($_POST['page_number']) && $_POST['page_number']) {
285
  $limit = ((int) sanitize_text_field($_POST['page_number']) - 1) * $this->per_page;
286
  }
411
 
412
  public function page_nav() {
413
  global $wpdb;
414
+ $where = ((isset($_POST['search_value']) && (sanitize_text_field(stripslashes($_POST['search_value'])) != '')) ? $wpdb->prepare(' WHERE name LIKE %s', '%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%' ) : '');
415
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "wd_fb_info " . $where;
416
  $total = $wpdb->get_var($query);
417
  $page_nav['total'] = $total;
433
  else {
434
  $where = " AND author>=0 ";
435
  }
436
+ $where .= ((isset($_POST['search_value']) && (sanitize_text_field(stripslashes($_POST['search_value'])) != '')) ? $wpdb->prepare(' AND filename LIKE %s', '%' . sanitize_text_field(stripslashes($_POST['search_value'])) . '%' ) : '');
437
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "bwg_image WHERE gallery_id='" . $gallery_id . "' " . $where;
438
  $total = $wpdb->get_var($query);
439
  $page_nav['total'] = $total;
admin/models/FFWDModelThemes_ffwd.php CHANGED
@@ -30,7 +30,7 @@ class FFWDModelThemes_ffwd {
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  public function get_rows_data() {
32
  global $wpdb;
33
- $where = ((isset($_POST['search_value']) && (sanitize_text_field($_POST['search_value']) != '')) ? 'WHERE name LIKE "%' . sanitize_text_field($_POST['search_value']) . '%"' : '');
34
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field($_POST['asc_or_desc']) : 'asc');
35
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
36
  $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && sanitize_text_field($_POST['order_by']) != '') ? sanitize_text_field($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
@@ -362,7 +362,7 @@ class FFWDModelThemes_ffwd {
362
 
363
  public function page_nav() {
364
  global $wpdb;
365
- $where = ((isset($_POST['search_value']) && (sanitize_text_field($_POST['search_value']) != '')) ? 'WHERE name LIKE "%' . sanitize_text_field($_POST['search_value']) . '%"' : '');
366
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "wd_fb_theme " . $where;
367
  $total = $wpdb->get_var($query);
368
  $page_nav['total'] = $total;
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  public function get_rows_data() {
32
  global $wpdb;
33
+ $where = ((isset($_POST['search_value']) && (sanitize_text_field($_POST['search_value']) != '')) ? $wpdb->prepare('WHERE name LIKE %s', '%' . sanitize_text_field($_POST['search_value']) . '%') : '');
34
  $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field($_POST['asc_or_desc']) : 'asc');
35
  $asc_or_desc = ($asc_or_desc != 'asc') ? 'desc' : 'asc';
36
  $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && sanitize_text_field($_POST['order_by']) != '') ? sanitize_text_field($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
362
 
363
  public function page_nav() {
364
  global $wpdb;
365
+ $where = ((isset($_POST['search_value']) && (sanitize_text_field($_POST['search_value']) != '')) ? $wpdb->prepare('WHERE name LIKE %s', '%' . sanitize_text_field($_POST['search_value']) . '%') : '');
366
  $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "wd_fb_theme " . $where;
367
  $total = $wpdb->get_var($query);
368
  $page_nav['total'] = $total;
admin/views/FFWDViewFFWDShortcode.php CHANGED
@@ -166,10 +166,10 @@ class FFWDViewFFWDShortcode
166
 
167
  function wd_fb_insert_btn_disable(){
168
  if(jQuery('#wd_fb_feed').val() == 0){
169
- jQuery('#insert').attr('disabled', true);
170
  jQuery('#insert').css('opacity', 0.5);
171
  }else{
172
- jQuery('#insert').attr('disabled', false);
173
  jQuery('#insert').css('opacity', 1);
174
  }
175
  }
166
 
167
  function wd_fb_insert_btn_disable(){
168
  if(jQuery('#wd_fb_feed').val() == 0){
169
+ jQuery('#insert').prop('disabled', true);
170
  jQuery('#insert').css('opacity', 0.5);
171
  }else{
172
+ jQuery('#insert').prop('disabled', false);
173
  jQuery('#insert').css('opacity', 1);
174
  }
175
  }
admin/views/FFWDViewInfo_ffwd.php CHANGED
@@ -1981,7 +1981,7 @@ class FFWDViewInfo_ffwd
1981
 
1982
  jQuery('.ffwd_view').removeClass('ffwd_view_s');
1983
  jQuery(that).addClass('ffwd_view_s');
1984
- jQuery(that).find('input[type="radio"]').attr('checked', 'checked');
1985
  // Thumbnails, Masonry.
1986
  jQuery("#" + wd_fb_prefix + "_tr_masonry_hor_ver").css('display', 'none');
1987
  ffwd_change_label("col_num_label", 'Max. number of image columns');
1981
 
1982
  jQuery('.ffwd_view').removeClass('ffwd_view_s');
1983
  jQuery(that).addClass('ffwd_view_s');
1984
+ jQuery(that).find('input[type="radio"]').prop('checked', true);
1985
  // Thumbnails, Masonry.
1986
  jQuery("#" + wd_fb_prefix + "_tr_masonry_hor_ver").css('display', 'none');
1987
  ffwd_change_label("col_num_label", 'Max. number of image columns');
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.26
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.26");
19
  }
20
  add_action( 'admin_init', 'ffwd_init' );
21
 
@@ -575,11 +575,12 @@ function ffwd_activate() {
575
 
576
  delete_option("ffwd_uninstall");
577
  global $wpdb;
 
578
  $wd_fb_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "wd_fb_shortcode` (
579
  `id` bigint(20) NOT NULL,
580
  `tagtext` mediumtext NOT NULL,
581
  PRIMARY KEY (`id`)
582
- ) DEFAULT CHARSET=utf8;";
583
  $wpdb->query( $wd_fb_shortcode );
584
 
585
  $wd_fb_info = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "wd_fb_info` (
@@ -678,7 +679,7 @@ function ffwd_activate() {
678
  `upcoming_events` tinyint(4) NOT NULL,
679
  `fb_page_id` varchar(32) NOT NULL,
680
  PRIMARY KEY (`id`)
681
- ) DEFAULT CHARSET=utf8;";
682
 
683
 
684
  $wpdb->query( $wd_fb_info );
@@ -741,7 +742,7 @@ function ffwd_activate() {
741
  `attachments` text NOT NULL,
742
  `who_post` text NOT NULL,
743
  PRIMARY KEY (`id`)
744
- ) DEFAULT CHARSET=utf8;";
745
  $wpdb->query( $wd_fb_data );
746
 
747
  $wd_fb_data_collation = "ALTER TABLE `" . $wpdb->prefix . "wd_fb_data`
@@ -760,7 +761,7 @@ function ffwd_activate() {
760
  `date_timezone` varchar(64) NOT NULL,
761
  `post_date_format` varchar(64) NOT NULL,
762
  `event_date_format` varchar(64) NOT NULL
763
- ) DEFAULT CHARSET=utf8;";
764
  $wpdb->query( $wd_fb_option );
765
 
766
  /*$ffwd_settings = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "ffwd_settings` (
@@ -779,7 +780,7 @@ function ffwd_activate() {
779
  `params` longtext,
780
  `default_theme` tinyint(1) NOT NULL,
781
  PRIMARY KEY (`id`)
782
- ) DEFAULT CHARSET=utf8;";
783
  $wpdb->query( $wd_fb_theme );
784
 
785
  $exists_default = $wpdb->get_var( 'SELECT count(id) FROM ' . $wpdb->prefix . 'wd_fb_option' );
@@ -1083,7 +1084,8 @@ function wd_fb_update($from_plugin=0) {
1083
 
1084
  // Facebook Feed by 10Web Widget.
1085
  if ( class_exists( 'WP_Widget' ) ) {
1086
- require_once( WD_FFWD_DIR . '/admin/controllers/FFWDControllerWidget.php' );
 
1087
  add_action( 'widgets_init', 'ffwd_register_widget' );
1088
  }
1089
 
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.27
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.27");
19
  }
20
  add_action( 'admin_init', 'ffwd_init' );
21
 
575
 
576
  delete_option("ffwd_uninstall");
577
  global $wpdb;
578
+ $charset_collate = $wpdb->get_charset_collate();
579
  $wd_fb_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "wd_fb_shortcode` (
580
  `id` bigint(20) NOT NULL,
581
  `tagtext` mediumtext NOT NULL,
582
  PRIMARY KEY (`id`)
583
+ ) " . $charset_collate . ";";
584
  $wpdb->query( $wd_fb_shortcode );
585
 
586
  $wd_fb_info = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "wd_fb_info` (
679
  `upcoming_events` tinyint(4) NOT NULL,
680
  `fb_page_id` varchar(32) NOT NULL,
681
  PRIMARY KEY (`id`)
682
+ ) " . $charset_collate . ";";
683
 
684
 
685
  $wpdb->query( $wd_fb_info );
742
  `attachments` text NOT NULL,
743
  `who_post` text NOT NULL,
744
  PRIMARY KEY (`id`)
745
+ ) " . $charset_collate . ";";
746
  $wpdb->query( $wd_fb_data );
747
 
748
  $wd_fb_data_collation = "ALTER TABLE `" . $wpdb->prefix . "wd_fb_data`
761
  `date_timezone` varchar(64) NOT NULL,
762
  `post_date_format` varchar(64) NOT NULL,
763
  `event_date_format` varchar(64) NOT NULL
764
+ ) " . $charset_collate . ";";
765
  $wpdb->query( $wd_fb_option );
766
 
767
  /*$ffwd_settings = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "ffwd_settings` (
780
  `params` longtext,
781
  `default_theme` tinyint(1) NOT NULL,
782
  PRIMARY KEY (`id`)
783
+ ) " . $charset_collate . ";";
784
  $wpdb->query( $wd_fb_theme );
785
 
786
  $exists_default = $wpdb->get_var( 'SELECT count(id) FROM ' . $wpdb->prefix . 'wd_fb_option' );
1084
 
1085
  // Facebook Feed by 10Web Widget.
1086
  if ( class_exists( 'WP_Widget' ) ) {
1087
+ add_action('wp_enqueue_scripts', 'ffwd_front_end_scripts');
1088
+ require_once( WD_FFWD_DIR . '/admin/controllers/FFWDControllerWidget.php' );
1089
  add_action( 'widgets_init', 'ffwd_register_widget' );
1090
  }
1091
 
js/ffwd.js CHANGED
@@ -324,7 +324,7 @@ function choose_fb_content_type(wd_fb_prefix, value) {
324
  jQuery('#'+wd_fb_prefix+'_content_type_timeline').hide();
325
  jQuery('#'+wd_fb_prefix+'_content_type_timeline_type').hide();
326
 
327
- jQuery('#'+wd_fb_prefix+'_content_'+value).attr('checked', 'checked');
328
  jQuery('#'+wd_fb_prefix+'_content_type_'+value).show();
329
 
330
  if (jQuery('#ffwd_type').val() == 'group') {
@@ -344,7 +344,7 @@ function choose_fb_content_type(wd_fb_prefix, value) {
344
  if (jQuery('#ffwd_type').val() != 'group') {
345
  jQuery('#' + wd_fb_prefix + '_content_type_' + value + '_type').show();
346
  }
347
- if( jQuery('#'+wd_fb_prefix+'_content_timeline').prop('checked'))
348
  {
349
 
350
  jQuery('.ffwd_blog_style').css('display','');
@@ -370,7 +370,7 @@ switch (jQuery('input[name="ffwd_specific"]:checked').val()) {
370
  if(!jQuery('.ffwd_album_compact ').hasClass('ffwd_view_s'))
371
  {
372
  ffwd_view_type(wd_fb_prefix, 'album_compact', jQuery('.'+wd_fb_prefix+'album_compact'))
373
- jQuery('.ffwd_album_compact').find('input[type="radio"]').attr('checked','checked');
374
 
375
  jQuery('.ffwd_album_compact ').addClass('ffwd_view_s')
376
 
@@ -388,7 +388,7 @@ switch (jQuery('input[name="ffwd_specific"]:checked').val()) {
388
  if(!jQuery('.ffwd_blog_style ').hasClass('ffwd_view_s') && !jQuery('.ffwd_thumbnails ').hasClass('ffwd_view_s'))
389
  {
390
  ffwd_view_type(wd_fb_prefix, 'thumbnails', jQuery('.'+wd_fb_prefix+'thumbnails'))
391
- jQuery('.ffwd_thumbnails').find('input[type="radio"]').attr('checked','checked');
392
 
393
  jQuery('.ffwd_thumbnails ').addClass('ffwd_view_s')
394
 
@@ -410,7 +410,7 @@ switch (jQuery('input[name="ffwd_specific"]:checked').val()) {
410
  {
411
  ffwd_view_type(wd_fb_prefix, 'thumbnails', jQuery('.'+wd_fb_prefix+'thumbnails'))
412
  jQuery('.ffwd_thumbnails ').addClass('ffwd_view_s')
413
- jQuery('.ffwd_thumbnails').find('input[type="radio"]').attr('checked','checked');
414
 
415
 
416
  }
@@ -600,20 +600,20 @@ function spider_show_hide_weights() {
600
  // Check all items.
601
  function spider_check_all_items() {
602
  spider_check_all_items_checkbox();
603
- // if (!jQuery('#check_all').attr('checked')) {
604
  jQuery('#check_all').trigger('click');
605
  // }
606
  }
607
  function spider_check_all_items_checkbox() {
608
- if (jQuery('#check_all_items').attr('checked')) {
609
- jQuery('#check_all_items').attr('checked', false);
610
  jQuery('#draganddrop').hide();
611
  }
612
  else {
613
  var saved_items = (parseInt(jQuery(".displaying-num").html()) ? parseInt(jQuery(".displaying-num").html()) : 0);
614
  var added_items = (jQuery('input[id^="check_pr_"]').length ? parseInt(jQuery('input[id^="check_pr_"]').length) : 0);
615
  var items_count = added_items + saved_items;
616
- jQuery('#check_all_items').attr('checked', true);
617
  if (items_count) {
618
  jQuery('#draganddrop').html("<strong><p>Selected " + items_count + " item" + (items_count > 1 ? "s" : "") + ".</p></strong>");
619
  jQuery('#draganddrop').show();
@@ -622,8 +622,8 @@ function spider_check_all_items_checkbox() {
622
  }
623
 
624
  function spider_check_all(current) {
625
- if (!jQuery(current).attr('checked')) {
626
- jQuery('#check_all_items').attr('checked', false);
627
  jQuery('#draganddrop').hide();
628
  }
629
  }
@@ -771,7 +771,7 @@ function bwg_check_checkboxes() {
771
  ids_array = ids_string.split(",");
772
  for (var i in ids_array) {
773
  if (ids_array.hasOwnProperty(i) && ids_array[i]) {
774
- if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
775
  flag = true;
776
  }
777
  }
@@ -805,7 +805,7 @@ function bwg_inputs() {
805
  }
806
 
807
  function bwg_enable_disable(display, id, current) {
808
- jQuery("#" + current).attr('checked', 'checked');
809
  jQuery("#" + id).css('display', display);
810
  if(id == 'tr_slideshow_title_position') {
811
  jQuery("#tr_slideshow_full_width_title").css('display', display);
324
  jQuery('#'+wd_fb_prefix+'_content_type_timeline').hide();
325
  jQuery('#'+wd_fb_prefix+'_content_type_timeline_type').hide();
326
 
327
+ jQuery('#'+wd_fb_prefix+'_content_'+value).prop('checked', true);
328
  jQuery('#'+wd_fb_prefix+'_content_type_'+value).show();
329
 
330
  if (jQuery('#ffwd_type').val() == 'group') {
344
  if (jQuery('#ffwd_type').val() != 'group') {
345
  jQuery('#' + wd_fb_prefix + '_content_type_' + value + '_type').show();
346
  }
347
+ if( jQuery('#'+wd_fb_prefix+'_content_timeline').prop('checked') )
348
  {
349
 
350
  jQuery('.ffwd_blog_style').css('display','');
370
  if(!jQuery('.ffwd_album_compact ').hasClass('ffwd_view_s'))
371
  {
372
  ffwd_view_type(wd_fb_prefix, 'album_compact', jQuery('.'+wd_fb_prefix+'album_compact'))
373
+ jQuery('.ffwd_album_compact').find('input[type="radio"]').prop( 'checked', true );
374
 
375
  jQuery('.ffwd_album_compact ').addClass('ffwd_view_s')
376
 
388
  if(!jQuery('.ffwd_blog_style ').hasClass('ffwd_view_s') && !jQuery('.ffwd_thumbnails ').hasClass('ffwd_view_s'))
389
  {
390
  ffwd_view_type(wd_fb_prefix, 'thumbnails', jQuery('.'+wd_fb_prefix+'thumbnails'))
391
+ jQuery('.ffwd_thumbnails').find('input[type="radio"]').prop( 'checked', true );
392
 
393
  jQuery('.ffwd_thumbnails ').addClass('ffwd_view_s')
394
 
410
  {
411
  ffwd_view_type(wd_fb_prefix, 'thumbnails', jQuery('.'+wd_fb_prefix+'thumbnails'))
412
  jQuery('.ffwd_thumbnails ').addClass('ffwd_view_s')
413
+ jQuery('.ffwd_thumbnails').find('input[type="radio"]').prop('checked', true );
414
 
415
 
416
  }
600
  // Check all items.
601
  function spider_check_all_items() {
602
  spider_check_all_items_checkbox();
603
+ // if (!jQuery('#check_all').prop('checked')) {
604
  jQuery('#check_all').trigger('click');
605
  // }
606
  }
607
  function spider_check_all_items_checkbox() {
608
+ if (jQuery('#check_all_items').prop('checked')) {
609
+ jQuery('#check_all_items').prop('checked', false);
610
  jQuery('#draganddrop').hide();
611
  }
612
  else {
613
  var saved_items = (parseInt(jQuery(".displaying-num").html()) ? parseInt(jQuery(".displaying-num").html()) : 0);
614
  var added_items = (jQuery('input[id^="check_pr_"]').length ? parseInt(jQuery('input[id^="check_pr_"]').length) : 0);
615
  var items_count = added_items + saved_items;
616
+ jQuery('#check_all_items').prop('checked', true);
617
  if (items_count) {
618
  jQuery('#draganddrop').html("<strong><p>Selected " + items_count + " item" + (items_count > 1 ? "s" : "") + ".</p></strong>");
619
  jQuery('#draganddrop').show();
622
  }
623
 
624
  function spider_check_all(current) {
625
+ if (!jQuery(current).prop('checked')) {
626
+ jQuery('#check_all_items').prop('checked', false);
627
  jQuery('#draganddrop').hide();
628
  }
629
  }
771
  ids_array = ids_string.split(",");
772
  for (var i in ids_array) {
773
  if (ids_array.hasOwnProperty(i) && ids_array[i]) {
774
+ if (jQuery("#check_" + ids_array[i]).prop('checked') == true) {
775
  flag = true;
776
  }
777
  }
805
  }
806
 
807
  function bwg_enable_disable(display, id, current) {
808
+ jQuery("#" + current).prop('checked', true );
809
  jQuery("#" + id).css('display', display);
810
  if(id == 'tr_slideshow_title_position') {
811
  jQuery("#tr_slideshow_full_width_title").css('display', display);
js/jquery.form.js CHANGED
@@ -364,7 +364,7 @@
364
  el.prop('disabled', false);
365
  }
366
  else {
367
- el.removeAttr('disabled');
368
  }
369
  }
370
  }
364
  el.prop('disabled', false);
365
  }
366
  else {
367
+ el.removeProp('disabled');
368
  }
369
  }
370
  }
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.5
7
- Stable tag: 1.1.26
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -104,6 +104,10 @@ If you think you found a bug in 10Web Facebook Feed or have any problem/question
104
  The plugin uses Facebook API to get public data from Facebook. All the received data is cached in WordPress database for some short customizable period to provide optimization. You can delete or update cached data. You can optionally enable like button for Facebook page. If you do so, Facebook will load some JS and embedded content which may track visitors. Facebook embeds are regulated under terms of Facebook privacy policy https://www.facebook.com/policy.php.
105
 
106
  == Changelog ==
 
 
 
 
107
  = 1.1.26 =
108
  * Fixed: Conflict with PHP version.
109
 
4
  Requires at least: 3.4
5
  Requires PHP: 5.2
6
  Tested up to: 5.5
7
+ Stable tag: 1.1.27
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
104
  The plugin uses Facebook API to get public data from Facebook. All the received data is cached in WordPress database for some short customizable period to provide optimization. You can delete or update cached data. You can optionally enable like button for Facebook page. If you do so, Facebook will load some JS and embedded content which may track visitors. Facebook embeds are regulated under terms of Facebook privacy policy https://www.facebook.com/policy.php.
105
 
106
  == Changelog ==
107
+ = 1.1.27 =
108
+ * Fixed: Conflict with WP 5.5 version.
109
+ * Fixed: Security issue.
110
+
111
  = 1.1.26 =
112
  * Fixed: Conflict with PHP version.
113
 
wd/assets/js/subsribe.js CHANGED
@@ -8,7 +8,7 @@ jQuery(document).on("ready", function () {
8
  var url = jQuery(this).attr("href");
9
  if ( url ) {
10
  jQuery(".allow_and_continue, .skip").css("opacity", "0.5");
11
- jQuery(".allow_and_continue, .skip").attr("disabled", "disabled");
12
  jQuery(".allow_and_continue, .skip").removeAttr("href");
13
  jQuery(".wd_loader").css("display", "inline-block");
14
  window.location = url;
8
  var url = jQuery(this).attr("href");
9
  if ( url ) {
10
  jQuery(".allow_and_continue, .skip").css("opacity", "0.5");
11
+ jQuery(".allow_and_continue, .skip").prop("disabled", true);
12
  jQuery(".allow_and_continue, .skip").removeAttr("href");
13
  jQuery(".wd_loader").css("display", "inline-block");
14
  window.location = url;