WordPress.org

Ready to get started?Download WordPress

Forums

MVIS Security Center
[resolved] Hard-coded wp-content URLs break resource loading (4 posts)

  1. Ian Dunn
    Member
    Posted 1 year ago #

    The plugin has the URLs to CSS and Javascript files hard-coded to the wp-content directory, but WP lets people change that to a different folder, and a lot of developers use a different directory for a number of reasons.

    When the plugin is installed on a system that uses a different content directory, none of the CSS or JavaScript files are loaded.

    You should be using plugins_url() to determine the plugin directory, instead of hard-coding it.

    http://wordpress.org/extend/plugins/mvis-security-center/

  2. secconsult
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Ian,

    thanks for pointing that out, I was not aware of it.

    Trunk is now updated to use plugins_url() to determine the wp-content directory and all hardcoded references to wp-content have been removed.

    Cheers,
    Stefan

  3. Ian Dunn
    Member
    Posted 1 year ago #

    Thanks, that's working now :)

  4. secconsult
    Member
    Plugin Author

    Posted 1 year ago #

    great, thanks again for the feedback Ian.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.