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

Version Description

  • Fix: Eliminates php notices introduced on 1.6.2
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.2.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wonderm00n-open-graph.php +9 -9
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
4
  Tags: facebook, open graph, open graph protocol, seo, share, social, meta, twitter card, twitter, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
5
  Requires at least: 3.5
6
  Tested up to: 4.0.1
7
- Stable tag: 1.6.2
8
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and other Meta Tags into your WordPress Website for more efficient sharing results.
9
 
10
  == Description ==
@@ -77,6 +77,9 @@ It allows the user to choose which tags are, or not, included and also the defau
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 1.6.2 =
81
  - Fix: Replaces all spaces by %20 on URLs (og:url, og:image, etc...), thanks to "Doc75"
82
 
4
  Tags: facebook, open graph, open graph protocol, seo, share, social, meta, twitter card, twitter, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
5
  Requires at least: 3.5
6
  Tested up to: 4.0.1
7
+ Stable tag: 1.6.2.1
8
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and other Meta Tags into your WordPress Website for more efficient sharing results.
9
 
10
  == Description ==
77
 
78
  == Changelog ==
79
 
80
+ = 1.6.2.1 =
81
+ - Fix: Eliminates php notices introduced on 1.6.2
82
+
83
  = 1.6.2 =
84
  - Fix: Replaces all spaces by %20 on URLs (og:url, og:image, etc...), thanks to "Doc75"
85
 
wonderm00n-open-graph.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
- * @version 1.6.2
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
8
  Plugin URI: http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
9
  Description: Inserts Facebook Open Graph, Google+ / Schema.org and Twitter Card 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.
10
- Version: 1.6.2
11
  Author: Webdados
12
  Author URI: http://www.webdados.pt
13
  Text Domain: wd-fb-og
@@ -16,7 +16,7 @@ Domain Path: /lang
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
 
19
- $webdados_fb_open_graph_plugin_version='1.6.2';
20
  $webdados_fb_open_graph_plugin_name='Facebook Open Graph, Google+ and Twitter Card Tags';
21
  $webdados_fb_open_graph_plugin_settings=array(
22
  'fb_app_id_show',
@@ -373,12 +373,12 @@ function webdados_fb_open_graph() {
373
  }
374
 
375
  //No spaces on URLs
376
- if (trim($fb_url)!='') $fb_url= str_replace(' ', '%20', trim($fb_url));
377
- if (trim($fb_publisher)!='') $fb_publisher= str_replace(' ', '%20', trim($fb_publisher));
378
- if (trim($fb_publisher_schema)!='') $fb_publisher_schema= str_replace(' ', '%20', trim($fb_publisher_schema));
379
- if (trim($fb_author)!='') $fb_author= str_replace(' ', '%20', trim($fb_author));
380
- if (trim($fb_author_linkrelgp)!='') $fb_author_linkrelgp= str_replace(' ', '%20', trim($fb_author_linkrelgp));
381
- if (trim($fb_image)!='') $fb_image= str_replace(' ', '%20', trim($fb_image));
382
 
383
  $html='
384
  <!-- START - '.$webdados_fb_open_graph_plugin_name.' '.$webdados_fb_open_graph_plugin_version.' -->
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
+ * @version 1.6.2.1
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
8
  Plugin URI: http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
9
  Description: Inserts Facebook Open Graph, Google+ / Schema.org and Twitter Card 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.
10
+ Version: 1.6.2.1
11
  Author: Webdados
12
  Author URI: http://www.webdados.pt
13
  Text Domain: wd-fb-og
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
 
19
+ $webdados_fb_open_graph_plugin_version='1.6.2.1';
20
  $webdados_fb_open_graph_plugin_name='Facebook Open Graph, Google+ and Twitter Card Tags';
21
  $webdados_fb_open_graph_plugin_settings=array(
22
  'fb_app_id_show',
373
  }
374
 
375
  //No spaces on URLs
376
+ if (isset($fb_url) && trim($fb_url)!='') $fb_url= str_replace(' ', '%20', trim($fb_url));
377
+ if (isset($fb_publisher) && trim($fb_publisher)!='') $fb_publisher= str_replace(' ', '%20', trim($fb_publisher));
378
+ if (isset($fb_publisher_schema) && trim($fb_publisher_schema)!='') $fb_publisher_schema= str_replace(' ', '%20', trim($fb_publisher_schema));
379
+ if (isset($fb_author) && trim($fb_author)!='') $fb_author= str_replace(' ', '%20', trim($fb_author));
380
+ if (isset($fb_author_linkrelgp) && trim($fb_author_linkrelgp)!='') $fb_author_linkrelgp= str_replace(' ', '%20', trim($fb_author_linkrelgp));
381
+ if (isset($fb_image) && trim($fb_image)!='') $fb_image= str_replace(' ', '%20', trim($fb_image));
382
 
383
  $html='
384
  <!-- START - '.$webdados_fb_open_graph_plugin_name.' '.$webdados_fb_open_graph_plugin_version.' -->