Permalink
Browse files

Merge branch 'master' of https://github.com/azanebrain/wp-super-cache

…into azanebrain-master
  • Loading branch information...
donnchawp committed Feb 8, 2017
2 parents 6ae0eda + 242e476 commit 8b63d5d97f246ba4d442e7b5d32a4d08fce4fd22
Showing with 3 additions and 3 deletions.
  1. +3 −3 ossdl-cdn.php
View
@@ -4,8 +4,8 @@
/* Set up some defaults */
if ( get_option( 'ossdl_off_cdn_url' ) == false )
- add_option('ossdl_off_cdn_url', get_option('siteurl'));
-$ossdl_off_blog_url = apply_filters( 'ossdl_off_blog_url', get_option( 'siteurl' ) );
+ add_option('ossdl_off_cdn_url', get_home_url());
+$ossdl_off_blog_url = apply_filters( 'ossdl_off_blog_url', get_home_url() );
$ossdl_off_cdn_url = trim( get_option('ossdl_off_cdn_url') );
if ( get_option( 'ossdl_off_include_dirs' ) == false )
add_option('ossdl_off_include_dirs', 'wp-content,wp-includes');
@@ -147,7 +147,7 @@ function scossdl_off_options() {
$example_cnames .= ',' . str_replace( 'http://cdn.', 'http://cdn2.', $example_cdn_uri );
$example_cnames .= ',' . str_replace( 'http://cdn.', 'http://cdn3.', $example_cdn_uri );
- $example_cdn_uri = get_option('ossdl_off_cdn_url') == get_option('siteurl') ? $example_cdn_uri : get_option('ossdl_off_cdn_url');
+ $example_cdn_uri = get_option('ossdl_off_cdn_url') == get_home_url() ? $example_cdn_uri : get_option('ossdl_off_cdn_url');
$example_cdn_uri .= '/wp-includes/js/jquery/jquery-migrate.js';
?>
<p><?php _e( 'Your website probably uses lots of static files. Image, Javascript and CSS files are usually static files that could just as easily be served from another site or CDN. Therefore, this plugin replaces any links in the <code>wp-content</code> and <code>wp-includes</code> directories (except for PHP files) on your site with the URL you provide below. That way you can either copy all the static content to a dedicated host or mirror the files to a CDN by <a href="https://knowledgelayer.softlayer.com/faq/how-does-origin-pull-work" target="_blank">origin pull</a>.', 'wp-super-cache' ); ?></p>

0 comments on commit 8b63d5d

Please sign in to comment.