[wp-trac] [WordPress Trac] #36423: Constant in wp-config.php to disable uploads
WordPress Trac
noreply at wordpress.org
Thu Feb 2 12:59:44 UTC 2017
#36423: Constant in wp-config.php to disable uploads
-----------------------------+------------------------------
Reporter: stevegrunwell | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by swissspidy):
I personally think we should avoid adding too many constants because of
backward compatibility problems and how they're not testable.
#38673 aims to introduce a `wp_disallow_file_mods( $context )` function.
Perhaps this could be used to conditionally disable file uploads?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36423#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list