CDN Enabler – WordPress CDN Plugin - Version 1.0.2

Version Description

  • Switched from siteurl to home (e.g. for bedrock support)
Download this release

Release Info

Developer keycdn
Plugin Icon 128x128 CDN Enabler – WordPress CDN Plugin
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (3) hide show
  1. cdn-enabler.php +2 -2
  2. inc/cdn_enabler.class.php +7 -7
  3. readme.txt +5 -1
cdn-enabler.php CHANGED
@@ -6,11 +6,11 @@ Description: Simply integrate a Content Delivery Network (CDN) into your WordPre
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
- Version: 1.0.1
10
  */
11
 
12
  /*
13
- Copyright (C) 2012-2015 KeyCDN
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
+ Version: 1.0.2
10
  */
11
 
12
  /*
13
+ Copyright (C) 2015 KeyCDN
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
inc/cdn_enabler.class.php CHANGED
@@ -140,14 +140,14 @@ class CDN_Enabler
140
  * run activation hook
141
  *
142
  * @since 0.0.1
143
- * @change 0.0.1
144
  */
145
 
146
  public static function handle_activation_hook() {
147
  add_option(
148
  'cdn_enabler',
149
  array(
150
- 'url' => get_option('siteurl'),
151
  'dirs' => 'wp-content,wp-includes',
152
  'excludes' => '.php',
153
  'relative' => '1',
@@ -184,7 +184,7 @@ class CDN_Enabler
184
  * return plugin options
185
  *
186
  * @since 0.0.1
187
- * @change 0.0.1
188
  *
189
  * @return array $diff data pairs
190
  */
@@ -194,7 +194,7 @@ class CDN_Enabler
194
  return wp_parse_args(
195
  get_option('cdn_enabler'),
196
  array(
197
- 'url' => get_option('siteurl'),
198
  'dirs' => 'wp-content,wp-includes',
199
  'excludes' => '.php',
200
  'relative' => 1,
@@ -208,7 +208,7 @@ class CDN_Enabler
208
  * run rewrite hook
209
  *
210
  * @since 0.0.1
211
- * @change 0.0.1
212
  */
213
 
214
  public static function handle_rewrite_hook()
@@ -216,14 +216,14 @@ class CDN_Enabler
216
  $options = self::get_options();
217
 
218
  // check if origin equals cdn url
219
- if (get_option('siteurl') == $options['url']) {
220
  return;
221
  }
222
 
223
  $excludes = array_map('trim', explode(',', $options['excludes']));
224
 
225
  $rewriter = new CDN_Enabler_Rewriter(
226
- get_option('siteurl'),
227
  $options['url'],
228
  $options['dirs'],
229
  $excludes,
140
  * run activation hook
141
  *
142
  * @since 0.0.1
143
+ * @change 1.0.2
144
  */
145
 
146
  public static function handle_activation_hook() {
147
  add_option(
148
  'cdn_enabler',
149
  array(
150
+ 'url' => get_option('home'),
151
  'dirs' => 'wp-content,wp-includes',
152
  'excludes' => '.php',
153
  'relative' => '1',
184
  * return plugin options
185
  *
186
  * @since 0.0.1
187
+ * @change 1.0.2
188
  *
189
  * @return array $diff data pairs
190
  */
194
  return wp_parse_args(
195
  get_option('cdn_enabler'),
196
  array(
197
+ 'url' => get_option('home'),
198
  'dirs' => 'wp-content,wp-includes',
199
  'excludes' => '.php',
200
  'relative' => 1,
208
  * run rewrite hook
209
  *
210
  * @since 0.0.1
211
+ * @change 1.0.2
212
  */
213
 
214
  public static function handle_rewrite_hook()
216
  $options = self::get_options();
217
 
218
  // check if origin equals cdn url
219
+ if (get_option('home') == $options['url']) {
220
  return;
221
  }
222
 
223
  $excludes = array_map('trim', explode(',', $options['excludes']));
224
 
225
  $rewriter = new CDN_Enabler_Rewriter(
226
+ get_option('home'),
227
  $options['url'],
228
  $options['dirs'],
229
  $excludes,
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: keycdn
3
  Tags: cdn, content delivery network, content distribution network
4
  Requires at least: 3.8
5
- Tested up to: 4.2.3
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,6 +25,7 @@ The CDN Enabler plugin has been developed to link your content to the CDN URLs.
25
  * Set included directories
26
  * Define exclusions
27
  * Enable or disable for HTTPS
 
28
 
29
 
30
  = System Requirements =
@@ -41,6 +42,9 @@ The CDN Enabler plugin has been developed to link your content to the CDN URLs.
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 1.0.1 =
45
  * First major release
46
  * Fixed warnings
2
  Contributors: keycdn
3
  Tags: cdn, content delivery network, content distribution network
4
  Requires at least: 3.8
5
+ Tested up to: 4.4
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
25
  * Set included directories
26
  * Define exclusions
27
  * Enable or disable for HTTPS
28
+ * Supports [Bedrock](https://roots.io/bedrock/ "Bedrock CDN")
29
 
30
 
31
  = System Requirements =
42
 
43
  == Changelog ==
44
 
45
+ = 1.0.2 =
46
+ * Switched from siteurl to home (e.g. for bedrock support)
47
+
48
  = 1.0.1 =
49
  * First major release
50
  * Fixed warnings