Version Description
- Fixed headers already sent notice.
- Added Links to Facebook Apps and plugin settings
- Removed deprecated is_date_only field on event template
Download this release
Release Info
Developer | poxtron |
Plugin | WP Embed Facebook |
Version | 1.9.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.6 to 1.9.6.1
- lib/core.php +6 -1
- lib/fb/facebook.php +10 -4
- readme.txt +10 -5
- templates/classic/event.php +1 -1
- templates/default/event.php +1 -1
- wp-embed-facebook.php +1 -1
lib/core.php
CHANGED
@@ -210,7 +210,12 @@ class WP_Embed_FB {
|
|
210 |
}
|
211 |
return self::fb_api_get($fb_id, $match[2], $type);
|
212 |
} else {
|
213 |
-
$return = '
|
|
|
|
|
|
|
|
|
|
|
214 |
$return .= '<p><a href="https://www.facebook.com/'.$match[2].'" target="_blank" rel="nofollow">https://www.facebook.com/'.$match[2].'</a></p>';
|
215 |
return $return;
|
216 |
}
|
210 |
}
|
211 |
return self::fb_api_get($fb_id, $match[2], $type);
|
212 |
} else {
|
213 |
+
$return = '';
|
214 |
+
if(is_super_admin()){
|
215 |
+
$return .= '<p>'.__('Add Facebook App ID and Secret on admin to make this plugin work.','wp-embed-facebook').'</p>';
|
216 |
+
$return .= '<p><a href="'.admin_url("options-general.php?page=embedfacebook").'" target="_blank">'.__("WP Embed Facebook Settings","wp-embed-facebook").'</a></p>';
|
217 |
+
$return .= '<p><a href="https://developers.facebook.com/apps" target="_blank">'.__("Your Facebook Apps","wp-embed-facebook").'</a></p>';
|
218 |
+
}
|
219 |
$return .= '<p><a href="https://www.facebook.com/'.$match[2].'" target="_blank" rel="nofollow">https://www.facebook.com/'.$match[2].'</a></p>';
|
220 |
return $return;
|
221 |
}
|
lib/fb/facebook.php
CHANGED
@@ -45,10 +45,16 @@ class Sigami_Facebook extends BaseFacebook
|
|
45 |
* @see BaseFacebook::__construct in facebook.php
|
46 |
*/
|
47 |
public function __construct($config) {
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
if (!empty($config['sharedSession'])) {
|
53 |
$this->initSharedSession();
|
54 |
}
|
45 |
* @see BaseFacebook::__construct in facebook.php
|
46 |
*/
|
47 |
public function __construct($config) {
|
48 |
+
if (version_compare(phpversion(), '5.4.0', '<')) {
|
49 |
+
if(session_id() == '') {
|
50 |
+
session_start();
|
51 |
+
}
|
52 |
+
} else {
|
53 |
+
if (session_status() == PHP_SESSION_NONE) {
|
54 |
+
session_start();
|
55 |
+
}
|
56 |
+
}
|
57 |
+
parent::__construct($config);
|
58 |
if (!empty($config['sharedSession'])) {
|
59 |
$this->initSharedSession();
|
60 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: poxtron
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
|
4 |
Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
|
5 |
Requires at least: 3.8.1
|
6 |
-
Tested up to: 4.2.
|
7 |
-
Stable tag: 1.9.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -20,7 +20,7 @@ Embed any public facebook video, page, post, profile, photo or event directly in
|
|
20 |
* Facebook Videos
|
21 |
* Facebook Albums
|
22 |
* Facebook Events
|
23 |
-
* Facebook
|
24 |
* Facebook Fan pages
|
25 |
* Facebook Community pages
|
26 |
* Facebook Profiles
|
@@ -82,6 +82,11 @@ The embedded post code comes directly from facebook so there is no easy way to c
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
|
|
85 |
= 1.9.6 =
|
86 |
* Fix Fatal Error on non object
|
87 |
|
@@ -198,5 +203,5 @@ The embedded post code comes directly from facebook so there is no easy way to c
|
|
198 |
|
199 |
== Upgrade Notice ==
|
200 |
|
201 |
-
= 1.9.6 =
|
202 |
-
* Fixed
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
|
4 |
Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
|
5 |
Requires at least: 3.8.1
|
6 |
+
Tested up to: 4.2.3
|
7 |
+
Stable tag: 1.9.6.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
20 |
* Facebook Videos
|
21 |
* Facebook Albums
|
22 |
* Facebook Events
|
23 |
+
* Facebook Photos
|
24 |
* Facebook Fan pages
|
25 |
* Facebook Community pages
|
26 |
* Facebook Profiles
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 1.9.6.1 =
|
86 |
+
* Fixed headers already sent notice.
|
87 |
+
* Added Links to Facebook Apps and plugin settings
|
88 |
+
* Removed deprecated is_date_only field on event template
|
89 |
+
|
90 |
= 1.9.6 =
|
91 |
* Fix Fatal Error on non object
|
92 |
|
203 |
|
204 |
== Upgrade Notice ==
|
205 |
|
206 |
+
= 1.9.6.1 =
|
207 |
+
* Fixed headers already sent notice.
|
templates/classic/event.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*/
|
6 |
?>
|
7 |
<?php
|
8 |
-
$start_time_format =
|
9 |
$start_time = strtotime($fb_data['start_time']);
|
10 |
if (get_site_option('wpemfb_ev_local_tz', 'true') == 'true') {
|
11 |
$start_time = $start_time + get_option('gmt_offset') * 3600; //shows event date on local time
|
5 |
*/
|
6 |
?>
|
7 |
<?php
|
8 |
+
$start_time_format = 'l, j F Y g:s a';
|
9 |
$start_time = strtotime($fb_data['start_time']);
|
10 |
if (get_site_option('wpemfb_ev_local_tz', 'true') == 'true') {
|
11 |
$start_time = $start_time + get_option('gmt_offset') * 3600; //shows event date on local time
|
templates/default/event.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* to access all fb data print_r($fb_data)
|
5 |
*/
|
6 |
$height = $width * $prop;
|
7 |
-
$start_time_format =
|
8 |
$start_time = strtotime($fb_data['start_time']);
|
9 |
if (get_site_option('wpemfb_ev_local_tz', 'true') == 'true') {
|
10 |
$start_time = $start_time + get_option('gmt_offset') * 3600; //shows event date on local time
|
4 |
* to access all fb data print_r($fb_data)
|
5 |
*/
|
6 |
$height = $width * $prop;
|
7 |
+
$start_time_format = 'l, j F Y g:s a';
|
8 |
$start_time = strtotime($fb_data['start_time']);
|
9 |
if (get_site_option('wpemfb_ev_local_tz', 'true') == 'true') {
|
10 |
$start_time = $start_time + get_option('gmt_offset') * 3600; //shows event date on local time
|
wp-embed-facebook.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Embed Facebook
|
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
Description: Embed a Facebook video, photo, album, event, page, profile, or post. Copy any facebook url to a single line on your post, or use shortcode [facebook='url' width='' ] more info at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
|
6 |
Author: Miguel Sirvent
|
7 |
-
Version: 1.9.6
|
8 |
Author URI: http://profiles.wordpress.org/poxtron/
|
9 |
*/
|
10 |
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
Description: Embed a Facebook video, photo, album, event, page, profile, or post. Copy any facebook url to a single line on your post, or use shortcode [facebook='url' width='' ] more info at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
|
6 |
Author: Miguel Sirvent
|
7 |
+
Version: 1.9.6.1
|
8 |
Author URI: http://profiles.wordpress.org/poxtron/
|
9 |
*/
|
10 |
|