WordPress.org

Support

Support » Plugins and Hacks » Pazzey's Store Locator » [Plugin: Pazzey's Store Locator] Hard coded wp-content

[Plugin: Pazzey's Store Locator] Hard coded wp-content

  • Installed the plugin for a peak and it looks great.

    It looks like you are hard coding the plugin’s file locations to /wp-content/ which means it won’t work on any site that has moved or renamed that directory, which is not completely uncommon.

    I found it on line 219 of storelocator.php.

    You’re already using a call to get the blog url. Perhaps you could change that to get the plugins_url() or better the plugin_dir_path()and not use a url call at all.

    If this makes things too complicated or breaks something else, no worries. A simple rewrite rule in htaccess solves it for me and will work for others who have non-standard installs.

    It’s good work you’re contributing to the community and sincere thank you for it.

    http://wordpress.org/extend/plugins/pazzeys-store-locator/

  • The topic ‘[Plugin: Pazzey's Store Locator] Hard coded wp-content’ is closed to new replies.
Skip to toolbar