WP Embed Facebook - Version 3.0.4

Version Description

  • Fixed: FaacebookApiException not found error
  • Fixed: String to array warning
  • Fixed: Broken links... some still there...
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

inc/Helpers.php CHANGED
@@ -19,6 +19,9 @@ class Helpers {
19
  static $lb_defaults = null;
20
 
21
  static function string_to_array( $string ) {
 
 
 
22
  return explode( ',', trim( $string, ' ,' ) );
23
  }
24
 
19
  static $lb_defaults = null;
20
 
21
  static function string_to_array( $string ) {
22
+ if(is_array($string)){
23
+ return $string;
24
+ }
25
  return explode( ',', trim( $string, ' ,' ) );
26
  }
27
 
inc/Plugin.php CHANGED
@@ -19,7 +19,7 @@ if ( ! defined( 'WPINC' ) ) {
19
  */
20
  final class Plugin extends Framework {
21
 
22
- const VER = '3.0.3';
23
 
24
  static $option = 'wpemfb_options';
25
  static $menu_slug = 'embedfacebook';
19
  */
20
  final class Plugin extends Framework {
21
 
22
+ const VER = '3.0.4';
23
 
24
  static $option = 'wpemfb_options';
25
  static $menu_slug = 'embedfacebook';
inc/deprecated/deprecated.php CHANGED
@@ -83,7 +83,7 @@ final class WP_Embed_FB_Deprecated_API {
83
  public function api( $string = '', $method = 'GET', $message = [] ) {
84
  if ( ! class_exists( 'FacebookApiException' ) ) {
85
  /** @noinspection PhpIncludeInspection */
86
- require_once( Plugin::path() . 'deprecated/FacebookApiException.php' );
87
  }
88
  try {
89
  FB_API::instance()->api( $string, $method, $message );
83
  public function api( $string = '', $method = 'GET', $message = [] ) {
84
  if ( ! class_exists( 'FacebookApiException' ) ) {
85
  /** @noinspection PhpIncludeInspection */
86
+ require_once( Plugin::path() . 'inc/deprecated/FacebookApiException.php' );
87
  }
88
  try {
89
  FB_API::instance()->api( $string, $method, $message );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Facebook, Social Plugins, embed facebook, facebook video, facebook posts,
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
  Requires PHP: 5.4
8
- Stable tag: 3.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Embed any public Facebook video, page, comment, event, album, photo, profile. Add Facebook comments to all your site or embed any Social Plugin.
@@ -29,6 +29,7 @@ Use simple shortcodes to invoke like, send, share, save buttons or any other Fac
29
  * Posts
30
  * Profiles
31
  * Single Comment
 
32
 
33
  There are two types of embeds: Custom Embeds that are entirely native to this plugin and Social Plugins which are pieces of code created by Facebook developers.
34
 
@@ -38,7 +39,7 @@ There are two types of embeds: Custom Embeds that are entirely native to this pl
38
 
39
  As an alternative to automatically embed your content, you can use the `[embedfb url]` shortcode instead and pass on some parameters to change each embed [examples](https://wpembedfb.com/documentation/wp-embed-facebook-shortcode-attributes-and-examples/).
40
 
41
- You can also use the built-in WordPress `[embed]` [shortcode](https://codex.wordpress.org/Embeds) .
42
 
43
  = Facebook Social Plugins =
44
 
@@ -72,7 +73,7 @@ Embed a share button for your main fan page
72
 
73
  Remove the "href" attribute to share the current page even if its invoked from a widget.
74
 
75
- Find all possible attributes on the plugin settings "Social Plugins" section. See live examples [here](http://www.wpembedfb.com/demo-site/category/social-plugins/).
76
 
77
  = Custom Embeds =
78
 
@@ -100,7 +101,7 @@ To enable moderation, scrape URLs and custom embeds you have to set up a Faceboo
100
 
101
  = The Quote Social Plugin =
102
 
103
- Allow your visitors to share text from your site just by selecting it. Activate it automatically on selected post types or using the shortcode `[fb_plugin quote]` [Demo](http://www.wpembedfb.com/demo-site/social-plugins/quote-plugin/).
104
 
105
  = Requirements =
106
 
@@ -193,6 +194,11 @@ Buying the premium extensions helps to keep this project alive.
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
196
  = 3.0.3 =
197
  * Fixed: Jetpack photon compatibility
198
 
@@ -553,5 +559,5 @@ Buying the premium extensions helps to keep this project alive.
553
 
554
  == Upgrade Notice ==
555
 
556
- = 3.0.3 =
557
  Completely rewritten to better keep up with FB updates really the best version yet!
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
  Requires PHP: 5.4
8
+ Stable tag: 3.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Embed any public Facebook video, page, comment, event, album, photo, profile. Add Facebook comments to all your site or embed any Social Plugin.
29
  * Posts
30
  * Profiles
31
  * Single Comment
32
+ * Events (Premium)
33
 
34
  There are two types of embeds: Custom Embeds that are entirely native to this plugin and Social Plugins which are pieces of code created by Facebook developers.
35
 
39
 
40
  As an alternative to automatically embed your content, you can use the `[embedfb url]` shortcode instead and pass on some parameters to change each embed [examples](https://wpembedfb.com/documentation/wp-embed-facebook-shortcode-attributes-and-examples/).
41
 
42
+ You can also use the built-in WordPress `[embed]` shortcode .
43
 
44
  = Facebook Social Plugins =
45
 
73
 
74
  Remove the "href" attribute to share the current page even if its invoked from a widget.
75
 
76
+ Find all possible attributes on the plugin settings "Social Plugins" section. See live examples [here](https://wpembedfb.com/social-plugin/).
77
 
78
  = Custom Embeds =
79
 
101
 
102
  = The Quote Social Plugin =
103
 
104
+ Allow your visitors to share text from your site just by selecting it. Activate it automatically on selected post types or using the shortcode `[fb_plugin quote]` To see it in action visit this plugin website and select any text [Demo](https://wpembedfb.com).
105
 
106
  = Requirements =
107
 
194
 
195
  == Changelog ==
196
 
197
+ = 3.0.4 =
198
+ * Fixed: FaacebookApiException not found error
199
+ * Fixed: String to array warning
200
+ * Fixed: Broken links... some still there...
201
+
202
  = 3.0.3 =
203
  * Fixed: Jetpack photon compatibility
204
 
559
 
560
  == Upgrade Notice ==
561
 
562
+ = 3.0.4 =
563
  Completely rewritten to better keep up with FB updates really the best version yet!
wp-embed-facebook.php CHANGED
@@ -9,7 +9,7 @@ Plugin Name: WP Embed Facebook
9
  Plugin URI: http://www.wpembedfb.com
10
  Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="https://wpembedfb.com/features" title="plugin website" target="_blank">features</a>.
11
  Author: Miguel Sirvent
12
- Version: 3.0.3
13
  Author URI: http://www.wpembedfb.com
14
  Text Domain: wp-embed-facebook
15
  GitHub Plugin URI: sigami/wp-embed-facebook
9
  Plugin URI: http://www.wpembedfb.com
10
  Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="https://wpembedfb.com/features" title="plugin website" target="_blank">features</a>.
11
  Author: Miguel Sirvent
12
+ Version: 3.0.4
13
  Author URI: http://www.wpembedfb.com
14
  Text Domain: wp-embed-facebook
15
  GitHub Plugin URI: sigami/wp-embed-facebook