[wp-trac] [WordPress Trac] #36710: Symlinked directories should not be deleted recursively
WordPress Trac
noreply at wordpress.org
Tue Mar 22 17:28:45 UTC 2022
#36710: Symlinked directories should not be deleted recursively
-------------------------------------------------+-------------------------
Reporter: andy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Filesystem API | Version:
Severity: major | Resolution:
Keywords: has-patch needs-testing needs- | Focuses:
testing-info | administration
-------------------------------------------------+-------------------------
Comment (by Dreamsorcerer):
It's been several years since I looked at this, but test instructions
should be fairly easy, something along the lines of:
Download a plugin outside of the WP directory.
Symlink that plugin into the plugins directory (`ln -s /path/to/plugin
/path/to/wp-content/plugins/`).
Observe that the plugin is installed and working correctly on the website.
Delete (and probably try upgrading on a second test) the plugin through
the website admin.
Observe that no errors occurred and the plugin is no longer on the
website.
Observe that the original plugin (outside WP directory) is still present
with no files deleted (symlinking again should result in the plugin being
installed and working again).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36710#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list