WP Embed Facebook - Version 1.9.3

Version Description

  • Fixed error on older versions of PHP
Download this release

Release Info

Developer poxtron
Plugin Icon 128x128 WP Embed Facebook
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

Files changed (3) hide show
  1. lib/core.php +6 -6
  2. readme.txt +6 -3
  3. wp-embed-facebook.php +1 -1
lib/core.php CHANGED
@@ -23,7 +23,7 @@ class WP_Embed_FB {
23
  if(!isset($type))
24
  $type = $opt==false?"activated":"reactivated";
25
  }
26
- static::whois($type);
27
  return;
28
  }
29
  /**
@@ -34,11 +34,11 @@ class WP_Embed_FB {
34
  foreach ($defaults as $option ) {
35
  delete_site_option($option);
36
  }
37
- static::whois('uninstalled');
38
  return;
39
  }
40
  static function deactivate(){
41
- static::whois('deactivated');
42
  return;
43
  }
44
  /**
@@ -191,7 +191,7 @@ class WP_Embed_FB {
191
  if(isset($vars['v'])){ //is video
192
  if($raw_video == 'true'){
193
  //$fb_data = array( 'v_id' => $vars['v'], 'is_video' => '' );
194
- return static::fb_api_get($vars['v'], $match[2]);
195
  //return self::print_fb_data($fb_data);
196
  } else {
197
  $fb_data = array( 'link' => $match[2],'is_post' => '' );
@@ -201,14 +201,14 @@ class WP_Embed_FB {
201
  //photos
202
  if( 'photo.php' == $last || ( array_search('photos',$clean) !== false ) ){
203
  if($raw_photo == 'true'){
204
- return static::fb_api_get($fb_id, $match[2]);
205
  } else {
206
  $fb_data = array( 'link' => $match[2],'is_post' => '' );
207
  return self::print_fb_data($fb_data);
208
  }
209
  }
210
 
211
- return static::fb_api_get($fb_id, $match[2], $type);
212
  }
213
  /**
214
  * get data from fb using WP_Embed_FB::$fbsdk->api('/'.$fb_id) :)
23
  if(!isset($type))
24
  $type = $opt==false?"activated":"reactivated";
25
  }
26
+ self::whois($type);
27
  return;
28
  }
29
  /**
34
  foreach ($defaults as $option ) {
35
  delete_site_option($option);
36
  }
37
+ self::whois('uninstalled');
38
  return;
39
  }
40
  static function deactivate(){
41
+ self::whois('deactivated');
42
  return;
43
  }
44
  /**
191
  if(isset($vars['v'])){ //is video
192
  if($raw_video == 'true'){
193
  //$fb_data = array( 'v_id' => $vars['v'], 'is_video' => '' );
194
+ return self::fb_api_get($vars['v'], $match[2]);
195
  //return self::print_fb_data($fb_data);
196
  } else {
197
  $fb_data = array( 'link' => $match[2],'is_post' => '' );
201
  //photos
202
  if( 'photo.php' == $last || ( array_search('photos',$clean) !== false ) ){
203
  if($raw_photo == 'true'){
204
+ return self::fb_api_get($fb_id, $match[2]);
205
  } else {
206
  $fb_data = array( 'link' => $match[2],'is_post' => '' );
207
  return self::print_fb_data($fb_data);
208
  }
209
  }
210
 
211
+ return self::fb_api_get($fb_id, $match[2], $type);
212
  }
213
  /**
214
  * get data from fb using WP_Embed_FB::$fbsdk->api('/'.$fb_id) :)
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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.1
7
- Stable tag: 1.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,6 +80,9 @@ The embedded post code comes directly from facebook so there is no easy way to c
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 1.9.2 =
84
  * Line breaks fix
85
 
@@ -179,5 +182,5 @@ The embedded post code comes directly from facebook so there is no easy way to c
179
 
180
  == Upgrade Notice ==
181
 
182
- = 1.9.2 =
183
- * Fixed empty lines at end of file.
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.1
7
+ Stable tag: 1.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.9.3 =
84
+ * Fixed error on older versions of PHP
85
+
86
  = 1.9.2 =
87
  * Line breaks fix
88
 
182
 
183
  == Upgrade Notice ==
184
 
185
+ = 1.9.3 =
186
+ * Fixed error on older versions of PHP
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.2
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.3
8
  Author URI: http://profiles.wordpress.org/poxtron/
9
  */
10