Skip to content

Commit

Permalink
Remove OG tags only when the site is configured to Coming Soon
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 committed Aug 28, 2024
1 parent ab69d75 commit 365f8da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function robots_txt( string $output, $public ): string {
* Disable the Open Graph Tags based on the value of either wpcom_public_coming_soon and wpcom_data_sharing_opt_out option.
*/
function remove_og_tags() {
if ( ! (bool) get_option( 'wpcom_public_coming_soon' ) && ! (bool) get_option( 'wpcom_data_sharing_opt_out' ) ) {
if ( ! (bool) get_option( 'wpcom_public_coming_soon' ) ) {
return;
}

Expand Down

0 comments on commit 365f8da

Please sign in to comment.