-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Use of the DIRECTORY_SEPARATOR constant here:
| $src = trailingslashit( get_option( 'home' ) . DIRECTORY_SEPARATOR . self::$options['endpoint'] ); |
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'] );
Metadata
Metadata
Assignees
Labels
No labels