Version Description
Added new app to optimize api calls Changed plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK Fixed security issues Tested Upto 5.2.3 Fixed Minor issues
Download this release
Release Info
Developer | DaNish Ali |
Plugin | Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp |
Version | 4.4.2 |
Comparing to | |
See all releases |
Code changes from version 4.4.3 to 4.4.2
- README.txt +2 -8
- admin/assets/js/admin.js +2 -4
- admin/easy-facebook-likebox-admin.php +1 -2
- admin/views/admin.php +1 -4
- easy-facebook-likebox.php +11 -22
- public/easy-facebook-likebox.php +1 -1
README.txt
CHANGED
@@ -3,11 +3,11 @@ Contributors: maltathemes, sjaved
|
|
3 |
Tags: easy custom facebook feed, facebook feed, facebook page plugin, page plugin, adoptive, facebook, facebook like box,, like box, facebook like box, facebook like box widget, facebook like box shortcodes, shortcodes, facebook like box plugin, facebook like box wordpress plugin, plugin, responsive facebook like box, responsive, facebook like box in 75 locales, facebook like box in 75 languages, custom facebook feed, facebook like box in PopUp, PopUp, Auto PopUp, like box in PopUp, fancybox, lightbox, seo, social media, facebook badge, facebook button, facebook connect, facebook facepile, Facebook fan page, wordpress facebook like box, facebook share, facebook integration, shortcode generator, advanced responsive facebook likebox, facebook wall, facebook sidebar, facebook recommend, like box facebook, open graph, facebook page, facebook group, rt facebook like box, sharebar
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.2.3
|
6 |
-
Stable tag: 4.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
Formerly "Easy Facebook Like Box and Custom Facebook Feed" allows to display custom facebook feed, page plugin (like box), like button, using widget, shortcode, PopUp.
|
11 |
|
12 |
== Description ==
|
13 |
|
@@ -108,9 +108,6 @@ Danish Ali Malik
|
|
108 |
3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
|
109 |
|
110 |
== Upgrade Notice ==
|
111 |
-
= 4.4.3 =
|
112 |
-
Fixed CSRF issue
|
113 |
-
|
114 |
= 4.4.2 =
|
115 |
Added new app to optimize api calls
|
116 |
Changed plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
|
@@ -233,9 +230,6 @@ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
|
|
233 |
9. Auto PopUp settings panel.
|
234 |
|
235 |
== Changelog ==
|
236 |
-
= 4.4.3 =
|
237 |
-
* Fixed: CSRF issue
|
238 |
-
|
239 |
= 4.4.2 =
|
240 |
* Added: New app to optimize api calls
|
241 |
* Changed: Plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
|
3 |
Tags: easy custom facebook feed, facebook feed, facebook page plugin, page plugin, adoptive, facebook, facebook like box,, like box, facebook like box, facebook like box widget, facebook like box shortcodes, shortcodes, facebook like box plugin, facebook like box wordpress plugin, plugin, responsive facebook like box, responsive, facebook like box in 75 locales, facebook like box in 75 languages, custom facebook feed, facebook like box in PopUp, PopUp, Auto PopUp, like box in PopUp, fancybox, lightbox, seo, social media, facebook badge, facebook button, facebook connect, facebook facepile, Facebook fan page, wordpress facebook like box, facebook share, facebook integration, shortcode generator, advanced responsive facebook likebox, facebook wall, facebook sidebar, facebook recommend, like box facebook, open graph, facebook page, facebook group, rt facebook like box, sharebar
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.2.3
|
6 |
+
Stable tag: 4.4.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
Formerly "Easy Facebook Like Box and Custom Facebook Feed" allows to display custom facebook feed, page plugin (like box), like button, using widget, shortcode, PopUp.
|
11 |
|
12 |
== Description ==
|
13 |
|
108 |
3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
|
109 |
|
110 |
== Upgrade Notice ==
|
|
|
|
|
|
|
111 |
= 4.4.2 =
|
112 |
Added new app to optimize api calls
|
113 |
Changed plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
|
230 |
9. Auto PopUp settings panel.
|
231 |
|
232 |
== Changelog ==
|
|
|
|
|
|
|
233 |
= 4.4.2 =
|
234 |
* Added: New app to optimize api calls
|
235 |
* Changed: Plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
|
admin/assets/js/admin.js
CHANGED
@@ -44,8 +44,7 @@
|
|
44 |
|
45 |
|
46 |
var data = { action : 'efbl_del_trans',
|
47 |
-
efbl_option : efbl_option
|
48 |
-
nonce : efbl.nonce
|
49 |
}
|
50 |
|
51 |
|
@@ -78,8 +77,7 @@
|
|
78 |
|
79 |
|
80 |
var data = { action : 'efbl_save_access_token',
|
81 |
-
efbl_access_token : efbl_access_token
|
82 |
-
nonce : efbl.nonce
|
83 |
}
|
84 |
|
85 |
|
44 |
|
45 |
|
46 |
var data = { action : 'efbl_del_trans',
|
47 |
+
efbl_option : efbl_option
|
|
|
48 |
}
|
49 |
|
50 |
|
77 |
|
78 |
|
79 |
var data = { action : 'efbl_save_access_token',
|
80 |
+
efbl_access_token : efbl_access_token
|
|
|
81 |
}
|
82 |
|
83 |
|
admin/easy-facebook-likebox-admin.php
CHANGED
@@ -162,8 +162,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
162 |
* Localizing script to get admin-ajax url dynamically.
|
163 |
*/
|
164 |
wp_localize_script( $this->plugin_slug . '-admin-script', 'efbl', array(
|
165 |
-
'ajax_url' => admin_url( 'admin-ajax.php' )
|
166 |
-
'nonce' => wp_create_nonce('efbl-ajax-nonce')
|
167 |
));
|
168 |
}
|
169 |
|
162 |
* Localizing script to get admin-ajax url dynamically.
|
163 |
*/
|
164 |
wp_localize_script( $this->plugin_slug . '-admin-script', 'efbl', array(
|
165 |
+
'ajax_url' => admin_url( 'admin-ajax.php' )
|
|
|
166 |
));
|
167 |
}
|
168 |
|
admin/views/admin.php
CHANGED
@@ -50,7 +50,6 @@ $data = '';
|
|
50 |
<?php if( $active_tab == 'general' ) {
|
51 |
if(isset($_GET['access_token']))
|
52 |
$access_token = $_GET['access_token'];
|
53 |
-
$access_token = preg_replace('/[^A-Za-z0-9]/', "", $access_token);
|
54 |
if(isset($access_token ) && !empty($access_token)):
|
55 |
if(current_user_can('editor') || current_user_can('administrator')) update_option('efbl_access_token', $access_token);
|
56 |
endif;
|
@@ -74,14 +73,12 @@ $data = '';
|
|
74 |
|
75 |
<table class="form-table">
|
76 |
<tbody>
|
77 |
-
<tr><th scope="row"><?php _e('Access Token', 'easy-facebook-likebox'); ?></th><td><textarea id="efbl_access_token" name="efbl_access_token" rows="5" cols="50" placeholder=""><?php
|
78 |
</tr>
|
79 |
</tbody>
|
80 |
</table>
|
81 |
<div class="button_container">
|
82 |
-
<?php if(!$efbl_access_token_db): ?>
|
83 |
<a class="efbl-save-access-token button button-primary" href="javascript:void(0);"><?php _e('Save Changes', 'easy-facebook-likebox'); ?></a>
|
84 |
-
<?php endif; ?>
|
85 |
</div>
|
86 |
|
87 |
<p><?php _e('Please note: This does not give us permission to manage your Facebook pages, it simply allows the plugin to see a list of the pages you manage and retrieve an Access Token.', 'easy-facebook-likebox'); ?></p>
|
50 |
<?php if( $active_tab == 'general' ) {
|
51 |
if(isset($_GET['access_token']))
|
52 |
$access_token = $_GET['access_token'];
|
|
|
53 |
if(isset($access_token ) && !empty($access_token)):
|
54 |
if(current_user_can('editor') || current_user_can('administrator')) update_option('efbl_access_token', $access_token);
|
55 |
endif;
|
73 |
|
74 |
<table class="form-table">
|
75 |
<tbody>
|
76 |
+
<tr><th scope="row"><?php _e('Access Token', 'easy-facebook-likebox'); ?></th><td><textarea id="efbl_access_token" name="efbl_access_token" rows="5" cols="50" placeholder=""><?php echo esc_textarea(get_option('efbl_access_token', false)); ?></textarea></td>
|
77 |
</tr>
|
78 |
</tbody>
|
79 |
</table>
|
80 |
<div class="button_container">
|
|
|
81 |
<a class="efbl-save-access-token button button-primary" href="javascript:void(0);"><?php _e('Save Changes', 'easy-facebook-likebox'); ?></a>
|
|
|
82 |
</div>
|
83 |
|
84 |
<p><?php _e('Please note: This does not give us permission to manage your Facebook pages, it simply allows the plugin to see a list of the pages you manage and retrieve an Access Token.', 'easy-facebook-likebox'); ?></p>
|
easy-facebook-likebox.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Easy Social Post Feed
|
4 |
* Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
|
5 |
-
* Description: Formerly "Easy Facebook Like Box and Custom Facebook Feed"
|
6 |
-
* Version: 4.4.
|
7 |
* Author: Danish Ali Malik
|
8 |
* Author URI: https://maltathemes.com/danish-ali-malik
|
9 |
* Text Domain: easy-facebook-likebox
|
@@ -116,19 +116,18 @@ add_action( 'widgets_init', 'register_fblx_widget' );
|
|
116 |
|
117 |
add_action( 'wp_ajax_efbl_del_trans', 'efbl_del_trans_cb') ;
|
118 |
|
|
|
|
|
119 |
|
120 |
function efbl_del_trans_cb(){
|
121 |
|
122 |
/* Saving ajax value in variable. */
|
123 |
-
$value =
|
124 |
|
125 |
$replaced_value = str_replace('_transient_', '', $value);
|
126 |
|
127 |
-
if(
|
128 |
-
|
129 |
-
$efbl_deleted_trans = delete_transient($replaced_value);
|
130 |
-
endif;
|
131 |
-
endif;
|
132 |
if(isset($efbl_deleted_trans)) echo wp_send_json_success($value); die();
|
133 |
|
134 |
}
|
@@ -140,20 +139,10 @@ add_action( 'wp_ajax_efbl_save_access_token', 'efbl_save_access_token') ;
|
|
140 |
/* Saving ajax value in variable. */
|
141 |
$value = $_POST['efbl_access_token'];
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
if(wp_verify_nonce( $_POST['nonce'], 'efbl-ajax-nonce' )):
|
148 |
-
if(current_user_can('editor') || current_user_can('administrator')):
|
149 |
-
$efbl_save_access_token = update_option('efbl_access_token', $value);
|
150 |
-
endif;
|
151 |
-
endif;
|
152 |
-
|
153 |
-
if(isset($efbl_save_access_token)):
|
154 |
-
echo wp_send_json_success($value); die();
|
155 |
|
156 |
-
|
157 |
-
endif;
|
158 |
|
159 |
}
|
2 |
/**
|
3 |
* Plugin Name: Easy Social Post Feed
|
4 |
* Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
|
5 |
+
* Description: Formerly "Easy Facebook Like Box and Custom Facebook Feed" allows you to easily display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Additionally it also now allows you to dipslay the cusetomized facebook feed on your website using the same color scheme of your website. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
|
6 |
+
* Version: 4.4.2
|
7 |
* Author: Danish Ali Malik
|
8 |
* Author URI: https://maltathemes.com/danish-ali-malik
|
9 |
* Text Domain: easy-facebook-likebox
|
116 |
|
117 |
add_action( 'wp_ajax_efbl_del_trans', 'efbl_del_trans_cb') ;
|
118 |
|
119 |
+
add_action( 'wp_ajax_nopriv_efbl_del_trans', 'efbl_del_trans_cb') ;
|
120 |
+
|
121 |
|
122 |
function efbl_del_trans_cb(){
|
123 |
|
124 |
/* Saving ajax value in variable. */
|
125 |
+
$value = $_POST['efbl_option'];
|
126 |
|
127 |
$replaced_value = str_replace('_transient_', '', $value);
|
128 |
|
129 |
+
if(current_user_can('editor') || current_user_can('administrator')): $efbl_deleted_trans = delete_transient($replaced_value); endif;
|
130 |
+
|
|
|
|
|
|
|
131 |
if(isset($efbl_deleted_trans)) echo wp_send_json_success($value); die();
|
132 |
|
133 |
}
|
139 |
/* Saving ajax value in variable. */
|
140 |
$value = $_POST['efbl_access_token'];
|
141 |
|
142 |
+
// echo $value; die();
|
143 |
+
|
144 |
+
if(current_user_can('editor') || current_user_can('administrator')): $efbl_save_access_token = update_option('efbl_access_token', $value); endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
+
if(isset($efbl_save_access_token)) echo wp_send_json_success($value); die();
|
|
|
147 |
|
148 |
}
|
public/easy-facebook-likebox.php
CHANGED
@@ -34,7 +34,7 @@ class Easy_Facebook_Likebox {
|
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
-
const VERSION = '4.4.
|
38 |
|
39 |
/**
|
40 |
* @TODO - Rename "plugin-name" to the name your your plugin
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
+
const VERSION = '4.4.2';
|
38 |
|
39 |
/**
|
40 |
* @TODO - Rename "plugin-name" to the name your your plugin
|