Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Feb 26, 2020
1 parent 2423a61 commit 434cf50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/photon-cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public static function fix_script_relative_path( $relative, $src ) {
return substr( $src, 1 + $strpos );
}

// Reverse cdnize_plugin_assets for loading the path
if ( preg_match( '#' . preg_quote( self::CDN, '#' ) . 'p/[^/]+/[^/]+/(.*)$#', $src, $m ) ) {
// Get the local path from a URL which was CDN'ed by cdnize_plugin_assets().
if ( preg_match( '#^' . preg_quote( self::CDN, '#' ) . 'p/[^/]+/[^/]+/(.*)$#', $src, $m ) ) {
return $m[1];
}

Expand Down

0 comments on commit 434cf50

Please sign in to comment.