WordPress.org

Ready to get started?Download WordPress

Forums

adding sub-directories to plugin breaks plugin... (2 posts)

  1. eight7teen
    Member
    Posted 5 years ago #

    I've written a plugin and didn't put a whole lot of thought into organization when I first wrote it. So, the plugin folder doesn't have any sub-directories in which to hold images,js,css, etc..

    Since releasing the plugin, I've tried to organize it and add folders to the plugin for images and css... However, I noticed that if users do the "one click" upgrade, the folders don't get added and the plugin breaks because the code is telling the browser to look in folders that don't exist.

    Is there a way to do this? Is there just something I'm missing?

  2. t31os
    Member
    Posted 5 years ago #

    Your plugin should make sure the directories are created shouldn't it?..

    Can you not replicate this issue yourself if it exists with the plugin?..

    I've not written plugins, but i'd imagine your plugin needs to check it's creating the folders if they are required.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.