PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | enhanced-open-graph.php +15 -0 16.2-beta → 16.3-a.7 View file →
@@ -31,8 +31,13 @@
31 31 if ( ! $post instanceof WP_Post ) {
32 32 return $tags;
33 33 }
34 34
35 + // A gated body's embedded media is withheld along with the body.
36 + if ( \Automattic\Jetpack\SEO\Content_Gate::is_gated( $post ) ) {
37 + return $tags;
38 + }
39 +
35 40 // Always favor featured images.
36 41 if ( enhanced_og_has_featured_image( $post->ID ) ) {
37 42 return $tags;
38 43 }
@@ -73,8 +78,13 @@
73 78 if ( ! $post instanceof WP_Post ) {
74 79 return $tags;
75 80 }
76 81
82 + // A gated body's embedded media is withheld along with the body.
83 + if ( \Automattic\Jetpack\SEO\Content_Gate::is_gated( $post ) ) {
84 + return $tags;
85 + }
86 +
77 87 // Always favor featured images.
78 88 if ( enhanced_og_has_featured_image( $post->ID ) ) {
79 89 return $tags;
80 90 }
@@ -124,8 +134,13 @@
124 134 global $post;
125 135
126 136 // Bail if we do not have info about the post.
127 137 if ( ! $post instanceof WP_Post ) {
138 + return $tags;
139 + }
140 +
141 + // A gated body's embedded media is withheld along with the body.
142 + if ( \Automattic\Jetpack\SEO\Content_Gate::is_gated( $post ) ) {
128 143 return $tags;
129 144 }
130 145
131 146 // Always favor featured images.