Version Description
- PHP notice bug fix
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.3.1
- public/class-webdados-fb-open-graph-public.php +29 -19
- readme.txt +4 -1
- wonderm00n-open-graph.php +2 -2
public/class-webdados-fb-open-graph-public.php
CHANGED
@@ -562,26 +562,36 @@ class Webdados_FB_Public {
|
|
562 |
//Object queried
|
563 |
$img_overlay_params = array(
|
564 |
'is_home' => is_home(),
|
565 |
-
'is_front_page' => is_front_page()
|
|
|
566 |
);
|
567 |
-
$object = get_queried_object()
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
}
|
586 |
//Should we do it?
|
587 |
if (
|
562 |
//Object queried
|
563 |
$img_overlay_params = array(
|
564 |
'is_home' => is_home(),
|
565 |
+
'is_front_page' => is_front_page(),
|
566 |
+
'object_type' => ''
|
567 |
);
|
568 |
+
if ( $object = get_queried_object() ) {
|
569 |
+
switch( get_class( $object ) ) {
|
570 |
+
case 'WP_Post':
|
571 |
+
// $this->is_posts_page || $this->is_singular
|
572 |
+
$img_overlay_params['object_type'] = 'post';
|
573 |
+
$img_overlay_params['object_id'] = $object->ID;
|
574 |
+
break;
|
575 |
+
case 'WP_Post_Type':
|
576 |
+
// $this->is_post_type_archive
|
577 |
+
$img_overlay_params['object_type'] = 'post_type';
|
578 |
+
$img_overlay_params['object_id'] = $object->name;
|
579 |
+
break;
|
580 |
+
case 'WP_Term':
|
581 |
+
// $this->is_category || $this->is_tag || $this->is_tax
|
582 |
+
$img_overlay_params['object_type'] = 'term';
|
583 |
+
$img_overlay_params['taxonomy'] = $object->taxonomy;
|
584 |
+
$img_overlay_params['object_id'] = $object->term_id;
|
585 |
+
break;
|
586 |
+
case 'WP_User':
|
587 |
+
// $this->is_author
|
588 |
+
$img_overlay_params['object_type'] = 'user';
|
589 |
+
$img_overlay_params['object_id'] = $object->ID;
|
590 |
+
break;
|
591 |
+
default:
|
592 |
+
//We should be looking into other types of objects?
|
593 |
+
break;
|
594 |
+
}
|
595 |
}
|
596 |
//Should we do it?
|
597 |
if (
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/donate_fb_opengraph
|
|
4 |
Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, 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.5
|
7 |
-
Stable tag: 2.3.
|
8 |
|
9 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
|
10 |
|
@@ -170,6 +170,9 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
173 |
= 2.3.0 =
|
174 |
* Option to disable image overlay on the default image
|
175 |
* New argument to the `fb_og_image_overlay` with queried object information
|
4 |
Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, 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.5
|
7 |
+
Stable tag: 2.3.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 |
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 2.3.1 =
|
174 |
+
* PHP notice bug fix
|
175 |
+
|
176 |
= 2.3.0 =
|
177 |
* Option to disable image overlay on the default image
|
178 |
* New argument to the `fb_og_image_overlay` with queried object information
|
wonderm00n-open-graph.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Open Graph and Twitter Card Tags
|
4 |
Plugin URI: https://www.webdados.pt/wordpress/plugins/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.3.
|
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: 4.1.0
|
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
15 |
|
16 |
-
define( 'WEBDADOS_FB_VERSION', '2.3.
|
17 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
|
18 |
define( 'WEBDADOS_FB_W', 1200 );
|
19 |
define( 'WEBDADOS_FB_H', 630 );
|
3 |
Plugin Name: Open Graph and Twitter Card Tags
|
4 |
Plugin URI: https://www.webdados.pt/wordpress/plugins/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.3.1
|
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.3.1' );
|
17 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
|
18 |
define( 'WEBDADOS_FB_W', 1200 );
|
19 |
define( 'WEBDADOS_FB_H', 630 );
|