WP Embed Facebook - Version 2.1.9

Version Description

  • Fixed page likes count
  • Fix css not found no custom templates
Download this release

Release Info

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

Code changes from version 2.1.8 to 2.1.9

lang/wp-embed-facebook.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the WP Embed Facebook package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.7\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/wp-embed-facebook\n"
8
  "POT-Creation-Date: 2016-10-06 11:26-0500\n"
2
  # This file is distributed under the same license as the WP Embed Facebook package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP Embed Facebook 2.1.8\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/wp-embed-facebook\n"
8
  "POT-Creation-Date: 2016-10-06 11:26-0500\n"
lib/class-wp-embed-fb-plugin.php CHANGED
@@ -240,7 +240,7 @@ class WP_Embed_FB_Plugin {
240
  $on_theme = get_stylesheet_directory() . "/plugins/wp-embed-facebook/$theme/$theme.css";
241
  $true_path = self::url() . "templates/$theme/$theme.css";
242
  if(file_exists( $on_theme )){
243
- $true_path = get_stylesheet_directory() . "/plugins/wp-embed-facebook/$theme/$theme.css";
244
  }
245
 
246
  wp_register_style( 'wpemfb-' . $theme, $true_path, array(), false );
240
  $on_theme = get_stylesheet_directory() . "/plugins/wp-embed-facebook/$theme/$theme.css";
241
  $true_path = self::url() . "templates/$theme/$theme.css";
242
  if(file_exists( $on_theme )){
243
+ $true_path = get_stylesheet_directory_uri() . "/plugins/wp-embed-facebook/$theme/$theme.css";
244
  }
245
 
246
  wp_register_style( 'wpemfb-' . $theme, $true_path, array(), false );
lib/class-wp-embed-fb.php CHANGED
@@ -358,7 +358,7 @@ class WP_Embed_FB {
358
  break;
359
  case 'page' :
360
  $num_posts = is_numeric( self::$num_posts ) ? self::$num_posts : WP_Embed_FB_Plugin::get_option( 'max_posts' );
361
- $api_string = $fb_id . '?fields=name,picture,is_community_page,link,id,cover,category,website,likes,genre';
362
  if ( intval( $num_posts ) > 0 ) {
363
  $api_string .= ',feed.limit(' . $num_posts . '){id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)}';
364
  }
358
  break;
359
  case 'page' :
360
  $num_posts = is_numeric( self::$num_posts ) ? self::$num_posts : WP_Embed_FB_Plugin::get_option( 'max_posts' );
361
+ $api_string = $fb_id . '?fields=name,picture,is_community_page,link,id,cover,category,website,genre,fan_count';
362
  if ( intval( $num_posts ) > 0 ) {
363
  $api_string .= ',feed.limit(' . $num_posts . '){id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)}';
364
  }
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.7.2
7
- Stable tag: 2.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -137,7 +137,11 @@ Buying the premium extensions helps to keep this project alive.
137
 
138
  == Changelog ==
139
 
140
- = 2.1.7 =
 
 
 
 
141
  * Removed download video link
142
  * Prevent wrong file load on theme templates @pierreg_
143
 
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.7.2
7
+ Stable tag: 2.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.1.9 =
141
+ * Fixed page likes count
142
+ * Fix css not found no custom templates
143
+
144
+ = 2.1.8 =
145
  * Removed download video link
146
  * Prevent wrong file load on theme templates @pierreg_
147
 
wp-embed-facebook.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Embed Facebook
4
  Plugin URI: http://www.wpembedfb.com
5
  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="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
6
  Author: Miguel Sirvent
7
- Version: 2.1.8
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang
4
  Plugin URI: http://www.wpembedfb.com
5
  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="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
6
  Author: Miguel Sirvent
7
+ Version: 2.1.9
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang