Skip to content

Commit

Permalink
OG Tags: do not output our tags when SEOPress is active (#41331)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve authored Jan 28, 2025
1 parent fe927e2 commit 9f23137
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: compat

Open Graph Meta Tags: do not display Jetpack's tags when the SEOPress plugin is active.
3 changes: 2 additions & 1 deletion projects/plugins/jetpack/class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ class Jetpack {
*
* - All in One SEO Pack, All in one SEO Pack Pro
* - WordPress SEO by Yoast, WordPress SEO Premium by Yoast
* - SEOPress, SEOPress Pro
*
* Plugin authors: If you'd like to prevent Jetpack's Open Graph tag generation in your plugin, you can do so via this filter:
* add_filter( 'jetpack_enable_open_graph', '__return_false' );
Expand Down Expand Up @@ -303,6 +302,8 @@ class Jetpack {
'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php', // WP Facebook Like Send & Open Graph Meta.
'wp-facebook-open-graph-protocol/wp-facebook-ogp.php', // WP Facebook Open Graph protocol.
'wp-ogp/wp-ogp.php', // WP-OGP.
'wp-seopress/seopress.php', // SEOPress.
'wp-seopress-pro/seopress-pro.php', // SEOPress Pro.
'zoltonorg-social-plugin/zosp.php', // Zolton.org Social Plugin.
'wp-fb-share-like-button/wp_fb_share-like_widget.php', // WP Facebook Like Button.
'open-graph-metabox/open-graph-metabox.php', // Open Graph Metabox.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Open Graph Meta Tags: do not display Jetpack's tags when the SEOPress plugin is active.
2 changes: 2 additions & 0 deletions projects/plugins/social/src/class-meta-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class Meta_Tags {
'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php', // WP Facebook Like Send & Open Graph Meta.
'wp-facebook-open-graph-protocol/wp-facebook-ogp.php', // WP Facebook Open Graph protocol.
'wp-ogp/wp-ogp.php', // WP-OGP.
'wp-seopress/seopress.php', // SEOPress.
'wp-seopress-pro/seopress-pro.php', // SEOPress Pro.
'zoltonorg-social-plugin/zosp.php', // Zolton.org Social Plugin.
'wp-fb-share-like-button/wp_fb_share-like_widget.php', // WP Facebook Like Button.
'open-graph-metabox/open-graph-metabox.php', // Open Graph Metabox.
Expand Down

0 comments on commit 9f23137

Please sign in to comment.