Version Description
- Fix: Prevented a PHP notice which would be displayed under rare circumstances
- Fix: Replaced a function due to a deprecation in PHP 7.2
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Facebook Feed |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
- README.txt +5 -1
- custom-facebook-feed-admin.php +11 -3
- custom-facebook-feed.php +3 -3
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
|
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook group
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -265,6 +265,10 @@ You no longer need your own Access Token to use the Custom Facebook Feed Plugin,
|
|
265 |
|
266 |
== Changelog ==
|
267 |
|
|
|
|
|
|
|
|
|
268 |
= 2.5 =
|
269 |
* New: Added the post story as part of the page/author name at the top of the post
|
270 |
* New: Added an option to use minified versions of the plugin CSS and JavaScript files: `Facebook Feed > Customize > Misc > Misc Settings > Minify CSS and JavaScript files`
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook group
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.5.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
265 |
|
266 |
== Changelog ==
|
267 |
|
268 |
+
= 2.5.1 =
|
269 |
+
* Fix: Prevented a PHP notice which would be displayed under rare circumstances
|
270 |
+
* Fix: Replaced a function due to a deprecation in PHP 7.2
|
271 |
+
|
272 |
= 2.5 =
|
273 |
* New: Added the post story as part of the page/author name at the top of the post
|
274 |
* New: Added an option to use minified versions of the plugin CSS and JavaScript files: `Facebook Feed > Customize > Misc > Misc Settings > Minify CSS and JavaScript files`
|
custom-facebook-feed-admin.php
CHANGED
@@ -158,12 +158,20 @@ function cff_settings_page() {
|
|
158 |
</td>
|
159 |
</tr>
|
160 |
|
161 |
-
<tr valign="top">
|
162 |
<th scope="row" style="padding-bottom: 10px;"><?php _e('Enter my own Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px;"><?php _e('This is Recommended', 'custom-facebook-feed'); ?></i></th>
|
163 |
<td>
|
164 |
<input name="cff_show_access_token" type="checkbox" id="cff_show_access_token" <?php if($show_access_token_val == true) echo "checked"; ?> /> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
|
165 |
<p class="cff-tooltip cff-more-info"><?php _e("A Facebook Access Token is not required to use this plugin, but we recommend it so that you're not reliant on the token built into the plugin. If you have your own token then you can check this box and enter it here. To get your own Access Token you can follow these <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>step-by-step instructions</a>", 'custom-facebook-feed'); ?>.</p>
|
166 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
</tr>
|
168 |
|
169 |
<tr valign="top" class="cff-access-token-hidden">
|
@@ -598,8 +606,8 @@ cff_preserve_settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?
|
|
598 |
cff_title_length => <?php echo get_option('cff_title_length') ."\n"; ?>
|
599 |
cff_body_length => <?php echo get_option('cff_body_length') ."\n"; ?>
|
600 |
<?php
|
601 |
-
|
602 |
-
echo "$
|
603 |
}
|
604 |
?>
|
605 |
|
158 |
</td>
|
159 |
</tr>
|
160 |
|
161 |
+
<!-- <tr valign="top">
|
162 |
<th scope="row" style="padding-bottom: 10px;"><?php _e('Enter my own Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px;"><?php _e('This is Recommended', 'custom-facebook-feed'); ?></i></th>
|
163 |
<td>
|
164 |
<input name="cff_show_access_token" type="checkbox" id="cff_show_access_token" <?php if($show_access_token_val == true) echo "checked"; ?> /> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
|
165 |
<p class="cff-tooltip cff-more-info"><?php _e("A Facebook Access Token is not required to use this plugin, but we recommend it so that you're not reliant on the token built into the plugin. If you have your own token then you can check this box and enter it here. To get your own Access Token you can follow these <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>step-by-step instructions</a>", 'custom-facebook-feed'); ?>.</p>
|
166 |
</td>
|
167 |
+
</tr> -->
|
168 |
+
|
169 |
+
<tr valign="top">
|
170 |
+
<th scope="row" style="padding-bottom: 10px;"><?php _e('Enter my own Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px;"><?php _e('Not Recommended', 'custom-facebook-feed'); ?></i></th>
|
171 |
+
<td>
|
172 |
+
<input name="cff_show_access_token" type="checkbox" id="cff_show_access_token" <?php if($show_access_token_val == true) echo "checked"; ?> /> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
|
173 |
+
<p class="cff-tooltip cff-more-info"><?php _e("Due to some sudden Facebook changes it is not currently possible to use a token from a new Facebook App to display your posts. You can simply leave this setting blank and the plugin will use a built-in token instead. If you have an existing Facebook App and you'd like to use your own Access Token then you can follow these <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>step-by-step instructions</a> to obtain one.", 'custom-facebook-feed'); ?>.</p>
|
174 |
+
</td>
|
175 |
</tr>
|
176 |
|
177 |
<tr valign="top" class="cff-access-token-hidden">
|
606 |
cff_title_length => <?php echo get_option('cff_title_length') ."\n"; ?>
|
607 |
cff_body_length => <?php echo get_option('cff_body_length') ."\n"; ?>
|
608 |
<?php
|
609 |
+
foreach ( $options as $option => $value ) {
|
610 |
+
echo "$option => $value\n";
|
611 |
}
|
612 |
?>
|
613 |
|
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 completely customizable Facebook feeds to your WordPress site
|
6 |
-
Version: 2.5
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
@@ -24,7 +24,7 @@ along with this program; if not, write to the Free Software
|
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
|
27 |
-
define('CFFVER', '2.5');
|
28 |
|
29 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
30 |
//Include admin
|
@@ -1678,7 +1678,7 @@ function display_cff($atts) {
|
|
1678 |
|
1679 |
//Check to see whether it's an embedded video so that we can show the name above the post text if necessary
|
1680 |
$cff_is_video_embed = false;
|
1681 |
-
if ($news->type == 'video'){
|
1682 |
$url = $news->source;
|
1683 |
//Embeddable video strings
|
1684 |
$youtube = 'youtube';
|
3 |
Plugin Name: Custom Facebook Feed
|
4 |
Plugin URI: http://smashballoon.com/custom-facebook-feed
|
5 |
Description: Add completely customizable Facebook feeds to your WordPress site
|
6 |
+
Version: 2.5.1
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
|
27 |
+
define('CFFVER', '2.5.1');
|
28 |
|
29 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
30 |
//Include admin
|
1678 |
|
1679 |
//Check to see whether it's an embedded video so that we can show the name above the post text if necessary
|
1680 |
$cff_is_video_embed = false;
|
1681 |
+
if ( $news->type == 'video' && isset($news->source) ){
|
1682 |
$url = $news->source;
|
1683 |
//Embeddable video strings
|
1684 |
$youtube = 'youtube';
|