Double slash breaks some functionality
-
Hi,
In this plugin you are using the following as a constant:
define( 'DISPLAY_POST_TYPES_URL', plugin_dir_url( __FILE__ ) );
This generates the plugin directory URL, with a trailing slash.
In frontend > inc > class-loader.php, you use code:
wp_enqueue_style( 'dpt-style', DISPLAY_POST_TYPES_URL . '/frontend/css/style.css', array(), DISPLAY_POST_TYPES_VERSION, 'all' );
This creates a duplicate trailing slash, which for most servers isn’t an issue. However, on other servers, it won’t load the files called with the double slash.
Can you fix this please, as it’s a great plugin otherwise!
Thanks,
Emma
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Double slash breaks some functionality’ is closed to new replies.