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

Version Description

  • New developer filter fb_og_overlayed_image_format to be able to output the overlayed image as png instead of jpg
  • Tested with WordPress 5.2.3-RC1-45880 and WooCommerce 3.7.0
Download this release

Release Info

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

Code changes from version 2.2.6.1 to 2.2.7

Files changed (3) hide show
  1. fbimg.php +11 -2
  2. readme.txt +7 -3
  3. wonderm00n-open-graph.php +3 -3
fbimg.php CHANGED
@@ -54,8 +54,17 @@
54
  }
55
 
56
  @header('HTTP/1.0 200 OK');
57
- header('Content-Type: image/jpeg');
58
- imagejpeg($thumb, NULL, 95);
 
 
 
 
 
 
 
 
 
59
  imagedestroy($image);
60
  imagedestroy($thumb);
61
  imagedestroy($barra);
54
  }
55
 
56
  @header('HTTP/1.0 200 OK');
57
+ switch( apply_filters( 'fb_og_overlayed_image_format', 'jpg' ) ) {
58
+ case 'png':
59
+ header('Content-Type: image/png');
60
+ imagepng($thumb);
61
+ break;
62
+ case 'jpg':
63
+ default:
64
+ header('Content-Type: image/jpeg');
65
+ imagejpeg($thumb, NULL, 95);
66
+ break;
67
+ }
68
  imagedestroy($image);
69
  imagedestroy($thumb);
70
  imagedestroy($barra);
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdados, wonderm00n
3
  Donate link: http://bit.ly/donate_fb_opengraph
4
  Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, 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.1.1
7
- Stable tag: 2.2.6.1
8
 
9
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
10
 
@@ -142,7 +142,7 @@ If you are a plugin or theme author you can always use our filters `fb_og_title`
142
 
143
  = What is the array structure for the `fb_og_image_additional` filter?
144
 
145
- Chouck out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
146
 
147
  = I'm getting a white screen of death / truncated HTML =
148
 
@@ -170,6 +170,10 @@ We DO NOT provide email support for this plugin. If you send us an email asking
170
 
171
  == Changelog ==
172
 
 
 
 
 
173
  = 2.2.6.1 =
174
  * Stop using the WooCommerce term meta helper functions
175
 
3
  Donate link: http://bit.ly/donate_fb_opengraph
4
  Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, 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.2.3
7
+ Stable tag: 2.2.7
8
 
9
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
10
 
142
 
143
  = What is the array structure for the `fb_og_image_additional` filter?
144
 
145
+ Check out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
146
 
147
  = I'm getting a white screen of death / truncated HTML =
148
 
170
 
171
  == Changelog ==
172
 
173
+ = 2.2.7 =
174
+ * New developer filter `fb_og_overlayed_image_format` to be able to output the overlayed image as png instead of jpg
175
+ * Tested with WordPress 5.2.3-RC1-45880 and WooCommerce 3.7.0
176
+
177
  = 2.2.6.1 =
178
  * Stop using the WooCommerce term meta helper functions
179
 
wonderm00n-open-graph.php CHANGED
@@ -3,17 +3,17 @@
3
  Plugin Name: Open Graph for Facebook, Google+ and Twitter Card Tags
4
  Plugin URI: https://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
5
  Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
6
- Version: 2.2.6.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: 3.6.0
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
- define( 'WEBDADOS_FB_VERSION', '2.2.6.1' );
17
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph for Facebook, Google+ and Twitter Card Tags' );
18
  define( 'WEBDADOS_FB_W', 1200 );
19
  define( 'WEBDADOS_FB_H', 630 );
3
  Plugin Name: Open Graph for Facebook, Google+ and Twitter Card Tags
4
  Plugin URI: https://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
5
  Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
6
+ Version: 2.2.7
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: 3.7.0
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
+ define( 'WEBDADOS_FB_VERSION', '2.2.7' );
17
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph for Facebook, Google+ and Twitter Card Tags' );
18
  define( 'WEBDADOS_FB_W', 1200 );
19
  define( 'WEBDADOS_FB_H', 630 );