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

Version Description

  • Small security fix
Download this release

Release Info

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

Code changes from version 2.2.4.1 to 2.2.4.2

Files changed (3) hide show
  1. fbimg.php +2 -2
  2. readme.txt +4 -1
  3. wonderm00n-open-graph.php +2 -2
fbimg.php CHANGED
@@ -75,7 +75,7 @@
75
  function imagecreatefromfile( $filename ) {
76
  try {
77
  if (!file_exists($filename)) {
78
- throw new InvalidArgumentException('File "'.$filename.'" not found.');
79
  }
80
  switch ( strtolower( pathinfo( $filename, PATHINFO_EXTENSION ))) {
81
  case 'jpeg':
@@ -92,7 +92,7 @@
92
  break;
93
 
94
  default:
95
- throw new InvalidArgumentException('File "'.$filename.'" is not valid jpg, png or gif image.');
96
  break;
97
  }
98
  } catch (Exception $e) {
75
  function imagecreatefromfile( $filename ) {
76
  try {
77
  if (!file_exists($filename)) {
78
+ throw new InvalidArgumentException('File "'.htmlentities($filename).'" not found.');
79
  }
80
  switch ( strtolower( pathinfo( $filename, PATHINFO_EXTENSION ))) {
81
  case 'jpeg':
92
  break;
93
 
94
  default:
95
+ throw new InvalidArgumentException('File "'.htmlentities($filename).'" is not valid jpg, png or gif image.');
96
  break;
97
  }
98
  } catch (Exception $e) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
  Requires at least: 4.5
6
  Tested up to: 5.0-alpha-42610
7
- Stable tag: 2.2.4.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
 
@@ -157,6 +157,9 @@ We DO NOT provide email support for this plugin. If you send us an email asking
157
 
158
  == Changelog ==
159
 
 
 
 
160
  = 2.2.4.1 =
161
  * Small security fix
162
 
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
5
  Requires at least: 4.5
6
  Tested up to: 5.0-alpha-42610
7
+ Stable tag: 2.2.4.2
8
 
9
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
10
 
157
 
158
  == Changelog ==
159
 
160
+ = 2.2.4.2 =
161
+ * Small security fix
162
+
163
  = 2.2.4.1 =
164
  * Small security fix
165
 
wonderm00n-open-graph.php CHANGED
@@ -3,7 +3,7 @@
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.4.1
7
  Author: Webdados
8
  Author URI: https://www.webdados.pt
9
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
@@ -13,7 +13,7 @@ WC tested up to: 3.3
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
- define( 'WEBDADOS_FB_VERSION', '2.2.4.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.4.2
7
  Author: Webdados
8
  Author URI: https://www.webdados.pt
9
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
 
16
+ define( 'WEBDADOS_FB_VERSION', '2.2.4.2' );
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 );