Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona authored Mar 11, 2022
2 parents 8a5d466 + fcc177e commit fafd476
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wp_media
Tested up to: 5.9
Stable tag: 1.0.2
Stable tag: 1.0.3
Requires at least: 5.4
Requires PHP: 7.0
License: GPLv2 or later
Expand Down Expand Up @@ -191,6 +191,9 @@ Amazon S3 can't be used with another CDN provider like RocketCDN. You can't mix
3. Clear RocketCDN cache

== Changelog ==
= 1.0.3 =
- Bugfix: fix website synchronization on domains using `www.` in hostname

= 1.0.2 =
- Bugfix: improve the website synchronization validation when entering the API key

Expand Down
4 changes: 2 additions & 2 deletions rocketcdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: RocketCDN
* Plugin URI: https://rocketcdn.me
* Description: RocketCDN automatically rewrites all URLs to be served by our content delivery network (CDN). Easy CDN deployment to WordPress.
* Version: 1.0.2
* Version: 1.0.3
* Requires at least: 5.4
* Requires PHP: 7.0
* Author: WP Media
Expand All @@ -15,7 +15,7 @@

defined( 'ABSPATH' ) || exit;

define( 'ROCKETCDN_VERSION', '1.0.2' );
define( 'ROCKETCDN_VERSION', '1.0.3' );

require realpath( plugin_dir_path( __FILE__ ) ) . '/includes/RocketCDNRequirementsCheck.php';

Expand Down
4 changes: 2 additions & 2 deletions src/API/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function is_website_sync( $api_key = '' ): bool {
continue;
}

if ( $hostname === $website['hostname'] ) {
if ( false !== strpos( $hostname, $website['hostname'] ) ) {
return true;
}
}
Expand All @@ -132,7 +132,7 @@ public function get_website_cdn_url(): string {
continue;
}

if ( $hostname !== $website['hostname'] ) {
if ( false === strpos( $hostname, $website['hostname'] ) ) {
continue;
}

Expand Down

0 comments on commit fafd476

Please sign in to comment.