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

Version Description

  • Minor fixes to avoid php notices filling up error logs. Thanks to flynsarmy.
Download this release

Release Info

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

Code changes from version 0.3.4 to 0.3.5

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wonderm00n-open-graph.php +8 -8
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wonderm00n
3
  Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
4
  Tags: facebook, open graph, seo, share, social, meta
5
  Requires at least: 3
6
- Tested up to: 3.4.2
7
- Stable tag: 0.3.4
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
 
@@ -35,6 +35,10 @@ The tags that this plugin inserts are:
35
 
36
  == Changelog ==
37
 
 
 
 
 
38
  = 0.3.4 =
39
 
40
  * Fixed a bug where all the settings could be lost when saving other plugins options (Shame on me!!)
3
  Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
4
  Tags: facebook, open graph, seo, share, social, meta
5
  Requires at least: 3
6
+ Tested up to: 3.5
7
+ Stable tag: 0.3.5
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 0.3.5 =
39
+
40
+ * Minor fixes to avoid php notices filling up error logs. Thanks to flynsarmy.
41
+
42
  = 0.3.4 =
43
 
44
  * Fixed a bug where all the settings could be lost when saving other plugins options (Shame on me!!)
wonderm00n-open-graph.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
- * @version 0.3.4
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
- Version: 0.3.4
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
- $wonderm00n_open_graph_plugin_version='0.3.4';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',
@@ -77,19 +77,19 @@ function wonderm00n_open_graph() {
77
  global $post;
78
  $fb_title=esc_attr(strip_tags(stripslashes($post->post_title)));
79
  //All In One SEO - To Do
80
- if ($fb_show_allinoneseo==1) {
81
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
82
  if (is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php')) {
83
  //Code still missing here
84
  }
85
- }
86
  //Platinum SEO - To Do
87
- if ($fb_show_platinumseo==1) {
88
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
89
  if (is_plugin_active('platinum-seo-pack/platinum_seo_pack.php')) {
90
  //Code still missing here
91
  }
92
- }
93
  //SubHeading
94
  if ($fb_show_subheading==1) {
95
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
@@ -183,7 +183,7 @@ function wonderm00n_open_graph() {
183
  //If no description let's just add the title
184
  if (trim($fb_desc)=='') $fb_desc=$fb_title;
185
 
186
- $html.='<!-- START - Wonderm00n\'s Simple Facebook Open Graph Tags '.$wonderm00n_open_graph_plugin_version.' -->
187
  ';
188
  if (intval($fb_app_id_show)==1 && trim($fb_app_id)!='') $html.='<meta property="fb:app_id" content="'.trim($fb_app_id).'" />
189
  ';
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
+ * @version 0.3.5
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
+ Version: 0.3.5
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
+ $wonderm00n_open_graph_plugin_version='0.3.5';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',
77
  global $post;
78
  $fb_title=esc_attr(strip_tags(stripslashes($post->post_title)));
79
  //All In One SEO - To Do
80
+ /*if ($fb_show_allinoneseo==1) {
81
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
82
  if (is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php')) {
83
  //Code still missing here
84
  }
85
+ }*/
86
  //Platinum SEO - To Do
87
+ /*if ($fb_show_platinumseo==1) {
88
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
89
  if (is_plugin_active('platinum-seo-pack/platinum_seo_pack.php')) {
90
  //Code still missing here
91
  }
92
+ }*/
93
  //SubHeading
94
  if ($fb_show_subheading==1) {
95
  @include_once(ABSPATH . 'wp-admin/includes/plugin.php');
183
  //If no description let's just add the title
184
  if (trim($fb_desc)=='') $fb_desc=$fb_title;
185
 
186
+ $html='<!-- START - Wonderm00n\'s Simple Facebook Open Graph Tags '.$wonderm00n_open_graph_plugin_version.' -->
187
  ';
188
  if (intval($fb_app_id_show)==1 && trim($fb_app_id)!='') $html.='<meta property="fb:app_id" content="'.trim($fb_app_id).'" />
189
  ';