Open Graph for Facebook, Google+ and Twitter Card Tags - Version 3.1.2

Version Description

  • Fix a bug when integrating with Yoast SEO 17.8 or above
  • Tested with WordPress 5.9-beta2-52350 and WooCommerce 6.0.0-rc.1
Download this release

Release Info

Developer webdados
Plugin Icon Open Graph for Facebook, Google+ and Twitter Card Tags
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

public/class-webdados-fb-open-graph-public.php CHANGED
@@ -429,7 +429,8 @@ class Webdados_FB_Public {
429
  $fb_url_temp = YoastSEO()->meta->for_current_page()->canonical;
430
  $fb_desc_temp = YoastSEO()->meta->for_current_page()->description;
431
  //If we don't get it, we try the old way
432
- if (
 
433
  (
434
  trim( $fb_title_temp ) == ''
435
  ||
@@ -444,7 +445,7 @@ class Webdados_FB_Public {
444
  if ( trim( $fb_title_temp ) == '' ) $fb_title_temp = @$wpseo->title( false );
445
  if ( trim( $fb_url_temp ) == '' ) $fb_url_temp = @$wpseo->canonical( false );
446
  if ( trim( $fb_desc_temp ) == '' ) $fb_desc_temp = @$wpseo->metadesc( false );
447
- }
448
  } else {
449
  $wpseo = WPSEO_Frontend::get_instance();
450
  $fb_title_temp = $wpseo->title( false );
429
  $fb_url_temp = YoastSEO()->meta->for_current_page()->canonical;
430
  $fb_desc_temp = YoastSEO()->meta->for_current_page()->description;
431
  //If we don't get it, we try the old way
432
+ //NO WE DON'T -> https://wordpress.org/support/topic/error-class-wpseo_frontend-not-found-after-updating-yoast-seo-to-17-8/
433
+ /*if (
434
  (
435
  trim( $fb_title_temp ) == ''
436
  ||
445
  if ( trim( $fb_title_temp ) == '' ) $fb_title_temp = @$wpseo->title( false );
446
  if ( trim( $fb_url_temp ) == '' ) $fb_url_temp = @$wpseo->canonical( false );
447
  if ( trim( $fb_desc_temp ) == '' ) $fb_desc_temp = @$wpseo->metadesc( false );
448
+ }*/
449
  } else {
450
  $wpseo = WPSEO_Frontend::get_instance();
451
  $fb_title_temp = $wpseo->title( false );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdados, wonderm00n
3
  Donate link: http://bit.ly/donate_fb_opengraph
4
  Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, twitter, google, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7, webdados
5
  Requires at least: 4.5
6
- Tested up to: 5.7
7
- Stable tag: 3.1.1
8
 
9
  Improve social media sharing by inserting Facebook Open Graph, Twitter Card, and SEO Meta Tags on your WordPress website pages, posts, WooCommerce products, or any other custom post type.
10
 
@@ -171,6 +171,10 @@ It’s similar, yes. They’ve forked our plugin and gave no credits whatsoever
171
 
172
  == Changelog ==
173
 
 
 
 
 
174
  = 3.1.1 =
175
  * Added i18n-config.json file for basic [qTranslate-XT](https://github.com/qtranslate/qtranslate-xt) compatibility (Thanks @grapestain)
176
  * Tested with WordPress 5.7-alpha-50017 and WooCommerce 5.0.0-beta.2
3
  Donate link: http://bit.ly/donate_fb_opengraph
4
  Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, twitter, google, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7, webdados
5
  Requires at least: 4.5
6
+ Tested up to: 5.9
7
+ Stable tag: 3.1.2
8
 
9
  Improve social media sharing by inserting Facebook Open Graph, Twitter Card, and SEO Meta Tags on your WordPress website pages, posts, WooCommerce products, or any other custom post type.
10
 
171
 
172
  == Changelog ==
173
 
174
+ = 3.1.2 =
175
+ * Fix a bug when integrating with Yoast SEO 17.8 or above
176
+ * Tested with WordPress 5.9-beta2-52350 and WooCommerce 6.0.0-rc.1
177
+
178
  = 3.1.1 =
179
  * Added i18n-config.json file for basic [qTranslate-XT](https://github.com/qtranslate/qtranslate-xt) compatibility (Thanks @grapestain)
180
  * Tested with WordPress 5.7-alpha-50017 and WooCommerce 5.0.0-beta.2
wonderm00n-open-graph.php CHANGED
@@ -3,17 +3,17 @@
3
  Plugin Name: Open Graph and Twitter Card Tags
4
  Plugin URI: https://www.webdados.pt/wordpress/plugins/facebook-open-graph-meta-tags-wordpress/
5
  Description: Improve social media sharing by inserting Facebook Open Graph, Twitter Card and SEO Meta Tags on your WordPress website pages, posts, WooCommerce products, or any other custom post type.
6
- Version: 3.1.1
7
  Author: Webdados
8
  Author URI: https://www.webdados.pt
9
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
10
  Domain Path: /lang
11
- WC tested up to: 5.0
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
- define( 'WEBDADOS_FB_VERSION', '3.1.1' );
17
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
18
  define( 'WEBDADOS_FB_W', 1200 );
19
  define( 'WEBDADOS_FB_H', 630 );
3
  Plugin Name: Open Graph and Twitter Card Tags
4
  Plugin URI: https://www.webdados.pt/wordpress/plugins/facebook-open-graph-meta-tags-wordpress/
5
  Description: Improve social media sharing by inserting Facebook Open Graph, Twitter Card and SEO Meta Tags on your WordPress website pages, posts, WooCommerce products, or any other custom post type.
6
+ Version: 3.1.2
7
  Author: Webdados
8
  Author URI: https://www.webdados.pt
9
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
10
  Domain Path: /lang
11
+ WC tested up to: 6.0
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
+ define( 'WEBDADOS_FB_VERSION', '3.1.2' );
17
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
18
  define( 'WEBDADOS_FB_W', 1200 );
19
  define( 'WEBDADOS_FB_H', 630 );