Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

zadro on "[Plugin: WordPress SEO by Yoast] Failed to stop the "Google Publisher Page" empty"

$
0
0

Change:

echo '<link rel="publisher" href="' . esc_attr( $options['plus-publisher'] ) . '"/>' . "\n";

To:

if(substr($_SERVER['HTTP_USER_AGENT'], 0, 13) != 'W3C_Validator')
   echo '<link rel="publisher" href="' . esc_attr( $options['plus-publisher'] ) . '"/>' . "\n";
}

in frontend/class-frontend.php


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>