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

Version Description

  • Avoid php notice on the "Members" plugin role edit page
Download this release

Release Info

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

Code changes from version 1.7.2 to 1.7.3

Files changed (2) hide show
  1. readme.txt +5 -1
  2. wonderm00n-open-graph.php +12 -10
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, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, subheading, php7
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
- Stable tag: 1.7.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 ==
@@ -109,9 +109,13 @@ We DO NOT provide email support for this plugin. If you send us an email asking
109
 
110
  == Changelog ==
111
 
 
 
 
112
  = 1.7.2 =
113
  - Better SubHeading plugin compatibility (choose either to add it Before or After the title)
114
  - Description set the same value as the title if it's empty
 
115
  - Added the fb_og_type filter so that plugins or themes can override the Open Graph Type
116
 
117
  = 1.7.1 =
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, subheading, php7
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
+ Stable tag: 1.7.3
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 ==
109
 
110
  == Changelog ==
111
 
112
+ = 1.7.3 =
113
+ - Avoid php notice on the "Members" plugin role edit page
114
+
115
  = 1.7.2 =
116
  - Better SubHeading plugin compatibility (choose either to add it Before or After the title)
117
  - Description set the same value as the title if it's empty
118
+ - Correct og:type for WPML root pages
119
  - Added the fb_og_type filter so that plugins or themes can override the Open Graph Type
120
 
121
  = 1.7.1 =
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.7.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.7.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.7.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',
@@ -864,13 +864,15 @@ if (is_admin()) {
864
  ) );
865
  }
866
  $exclude_types = apply_filters( 'fb_og_metabox_exclude_types', $exclude_types );
867
- if (!in_array(get_post_type($post->ID), $exclude_types)) {
868
- add_meta_box(
869
- 'webdados_fb_open_graph',
870
- $webdados_fb_open_graph_plugin_name,
871
- 'webdados_fb_open_graph_add_posts_options_box',
872
- $post->post_type
873
- );
 
 
874
  }
875
  }
876
  }
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
+ * @version 1.7.3
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.7.3
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.7.3';
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',
864
  ) );
865
  }
866
  $exclude_types = apply_filters( 'fb_og_metabox_exclude_types', $exclude_types );
867
+ if (is_object($post)) {
868
+ if (!in_array(get_post_type($post->ID), $exclude_types)) {
869
+ add_meta_box(
870
+ 'webdados_fb_open_graph',
871
+ $webdados_fb_open_graph_plugin_name,
872
+ 'webdados_fb_open_graph_add_posts_options_box',
873
+ $post->post_type
874
+ );
875
+ }
876
  }
877
  }
878
  }