Skip to content

Commit

Permalink
Merge branch 'fix/cdn-broken-json-translation-loading' of github.com:…
Browse files Browse the repository at this point in the history
…Automattic/jetpack into fix/cdn-broken-json-translation-loading
  • Loading branch information
zinigor committed Dec 18, 2018
2 parents 3adae0c + a66d67e commit ce2839f
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 @@ -30,7 +30,7 @@ public static function go() {
add_action( 'admin_print_scripts', array( __CLASS__, 'cdnize_assets' ) );
add_action( 'admin_print_styles', array( __CLASS__, 'cdnize_assets' ) );
add_action( 'wp_footer', array( __CLASS__, 'cdnize_assets' ) );
add_filter( 'load_script_textdomain_relative_path', array( __CLASS__, 'fix_script_relative_path' ) );
add_filter( 'load_script_textdomain_relative_path', array( __CLASS__, 'fix_script_relative_path' ), 10, 2 );
}

/**
Expand Down Expand Up @@ -85,7 +85,7 @@ public static function cdnize_assets() {
}

/**
* Ensure correct relative path when
* Ensure use of the correct relative path when determining the JavaScript file names.
*
* @param string $relative The relative path of the script. False if it could not be determined.
* @param string $src The full source url of the script.
Expand Down

0 comments on commit ce2839f

Please sign in to comment.