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

Pothi Kalimuthu on "[Plugin: WordPress SEO by Yoast] Sitemap: A bug while using a CDN in WP_PLUGIN_URL?"

$
0
0

Fixed it by replacing the following code...

$pluginurl = plugin_dir_url( __FILE__ );

with...

$pluginurl = preg_replace( '/https?:\/\/[-a-zA-Z0-9.]+\//', home_url('/'), plugin_dir_url( __FILE__ ) );

in wp-seo.php at line number 59, as of version 1.3.4.4 of this plugin.

The above fix basically lets the wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php to be served from the same domain as the site (without using the CDN domain).

Hope this helps someone!


Viewing all articles
Browse latest Browse all 42467

Trending Articles



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