diff options
Diffstat (limited to 'plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php')
-rw-r--r-- | plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php b/plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php index 7713aadf..b071ab1f 100644 --- a/plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php +++ b/plugins/jetpack/vendor/automattic/jetpack-assets/src/class-assets.php @@ -37,6 +37,20 @@ class Assets { $path = ( Jetpack_Constants::is_defined( 'SCRIPT_DEBUG' ) && Jetpack_Constants::get_constant( 'SCRIPT_DEBUG' ) ) ? $non_min_path : $min_path; - return plugins_url( $path, Jetpack_Constants::get_constant( 'JETPACK__PLUGIN_FILE' ) ); + + $url = plugins_url( $path, Jetpack_Constants::get_constant( 'JETPACK__PLUGIN_FILE' ) ); + + /** + * Filters the URL for a file passed through the get_file_url_for_environment function. + * + * @since 8.1.0 + * + * @package assets + * + * @param string $url The URL to the file. + * @param string $min_path The minified path. + * @param string $non_min_path The non-minified path. + */ + return apply_filters( 'jetpack_get_file_for_environment', $url, $min_path, $non_min_path ); } } |