• Resolved creativecatapps

    (@creativecatapps)


    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

    • This topic was modified 3 years, 3 months ago by creativecatapps. Reason: making code block more readable
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Veda

    (@vedathemes)

    Hi there,

    Thanks a lot for informing about this issue. I will certainly look into it and make necessary changes in the next update.
    I will update you on that.

    Thanks again.

    Plugin Author Veda

    (@vedathemes)

    Hi there,

    As discussed, I have made necessary changes in the latest update. Kindly check and inform if anything else needs to be done.

    I am closing this ticket for now. However, feel free to comment on this ticket or create a new ticket if any other help is required.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double slash breaks some functionality’ is closed to new replies.