| 开发者 | flexatech |
|---|---|
| 更新时间 | 2026年11月30日 12:59 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPL v2 or later |
| 版权网址: | 版权信息 |
*.php under uploads/ stays quiet.wp flex-explorer reset clears the plugin's options and tables.manage_options, filterable via
flex_explorer/capabilities/manage). Mutating calls require a nonce. A site
defining DISALLOW_FILE_EDIT switches the plugin off entirely, and on multisite
only network super admins pass, because the sandbox root is the whole network's
filesystem. wp-config.php, .htpasswd, .htaccess and the WordPress core
files at the site root can never be deleted, renamed or moved by anyone, with no
bypass: removing any of them would take the site down.
/wp-content/plugins/flex-explorer, or install through the WordPress Plugins screen.Only users with the manage_options capability, which in practice means
administrators. The gating capability is filterable via
flex_explorer/capabilities/manage.
Yes, with access restricted to network super admins. manage_options is a
per-site capability, but the sandbox root is the whole network's filesystem, so a
subsite administrator would otherwise reach every other site's files. A network
that does want per-site access can opt in with the
flex_explorer/capabilities/require_super_admin filter.
The most likely reason is that your site defines DISALLOW_FILE_EDIT, which
switches the plugin off completely: it is a much bigger lever than the core file
editor that constant disables. The Plugins screen shows a note when this is the
case. To keep the constant and still use the file manager, filter
flex_explorer/capabilities/enabled to true.
Plugins distributed through the WordPress.org directory are not allowed to edit site files, so this build has no editor and no write-content route at all: only "new empty file" remains. Choosing Edit opens a dialog with a link to the full build at flexacommerce.com/products/flex-explorer, which is free and keeps the editor. Both builds share the same slug, settings and tables, so switching between them loses nothing.
No, and that is not configurable. wp-config.php, .htpasswd, .htaccess and
the WordPress core files at the site root (wp-settings.php, wp-load.php, the
root index.php, wp-login.php, xmlrpc.php, wp-cron.php and friends) are
refused for delete, trash, rename and move, for everyone. The core-file guard
matches only the copy at the site root, so a plugin's own index.php in a
subfolder stays yours to manage.
Deleting, renaming, moving or overwriting an existing load-bearing file shows an
extra confirmation. You control exactly what counts, with two lists under
Settings → Risky operations: "Risky file patterns" (e.g. *.php,
.htaccess) and "Risky folders" (the tokens @wp-core, @active-theme,
@active-plugins, @mu-plugins, @self, or literal paths). A file is flagged
only when it matches a pattern AND lives inside one of the folders.
Yes, within your WordPress install. The sandbox root defaults to ABSPATH, and
the root_path setting can narrow it to any folder inside the install, for
example wp-content to keep the file manager away from everything else. It
cannot widen past the install: a stored path outside it is refused, because a
setting that reaches the rest of the server is not something a form field should
be able to do. A site that genuinely needs a root elsewhere sets it in code,
with the flex_explorer/sandbox/root filter.
Both live in a private folder that the plugin creates inside your uploads
directory. The folder name includes 128 random bits generated once per site, and
trashed items are stored without their original file extension, so there is no
URL to guess and nothing in there can be executed. The plugin also writes
.htaccess and web.config rules that deny direct access, which Apache and IIS
honour; nginx ignores them, which is why the name is randomised rather than
fixed, and why Settings → Trash warns you when it detects such a server.
To take HTTP out of the picture altogether, define FLEX_EXPLORER_STORAGE_DIR
in wp-config.php and point it at a writable folder outside your web root.
Set it before you start using the trash: moving it later leaves the existing
items behind at the old location.
Yes. Big zips run as background jobs that write into the private folder described above, poll for cancellation, and serve the finished archive over a sha256 token with HTTP Range support, so an interrupted download can resume. Finished archives are deleted after 24 hours.
Only the optional deactivation survey, documented under "External services" above, and only when you go to deactivate the plugin. File names and file contents are never sent anywhere.
uploads/ into a private folder whose name carries 128 random bits generated once per site. Existing trash is moved across automatically on upgrade..php file cannot be executed by a host that runs PHP inside the uploads directory..htaccess used 2.2 syntax only, which on a 2.4 server without mod_access_compat produced a 500 instead of a denial.FLEX_EXPLORER_STORAGE_DIR to keep that folder outside your web root entirely. Settings → Trash now warns when the server is one that ignores .htaccess.root_path setting may now only narrow the sandbox root to a folder inside your WordPress install. A stored path outside it is refused, and an existing one is ignored at runtime. Widening the root is still possible in code, with the flex_explorer/sandbox/root filter.flex_explorer/capabilities/require_super_admin), because manage_options is per-site while the sandbox root is the whole network's filesystem.DISALLOW_FILE_EDIT disables the plugin entirely (no menu, no REST, no admin page), with a note on the Plugins screen explaining why and a flex_explorer/capabilities/enabled filter to override it.i18n/languages on init.$_SERVER reads are sanitized and the dev-only scripts refuse to run outside WP-CLI.@wp-core, @active-theme, @active-plugins, @mu-plugins, @self, or literal paths. New filter: flex_explorer/risk/folders.flex-explorer/v1) for browse, preview, upload, create, delete, rename, copy, move, zip, unzip and search.wp flex-explorer reset.wp_upload_dir() instead of the WP_CONTENT_DIR constant, so the browser root follows custom content and uploads locations.zlib.output_compression setting after a download streams, keeping the change confined to that one request.DISALLOW_FILE_EDIT is defined as true.