Use of the DIRECTORY_SEPARATOR constant here:
|
$src = trailingslashit( get_option( 'home' ) . DIRECTORY_SEPARATOR . self::$options['endpoint'] ); |
is causing the path to a minified resource to be returned as
https://HOME_URL\_minify/RESOURCE_PATH. It's also not necessary as per the discussion here:
https://stackoverflow.com/questions/26881333/when-to-use-directory-separator-in-php-code/26881417#comment90090608_26881417
I recommend updating the line to:
$src = trailingslashit( get_option( 'home' ) . '/' . self::$options['endpoint'] );
or
$src = trailingslashit( trailingslashit( get_option( 'home' ) ) . self::$options['endpoint'] );
Use of the
DIRECTORY_SEPARATORconstant here:wp-dependency-minification/dependency-minification.php
Line 508 in c579d69
https://HOME_URL\_minify/RESOURCE_PATH. It's also not necessary as per the discussion here: https://stackoverflow.com/questions/26881333/when-to-use-directory-separator-in-php-code/26881417#comment90090608_26881417I recommend updating the line to:
$src = trailingslashit( get_option( 'home' ) . '/' . self::$options['endpoint'] );or
$src = trailingslashit( trailingslashit( get_option( 'home' ) ) . self::$options['endpoint'] );