Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #48316, comment 35


Ignore:
Timestamp:
02/07/2024 01:39:06 PM (12 months ago)
Author:
gerardreches
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48316, comment 35

    v1 v2  
    3030
    3131It makes so much sense in my head that I don't understand why this haven't been done yet, there has to be a catch. I'm no security expert, but if we can use an absolute path in `wp-config.php` for `WP_CONTENT_DIR` why couldn't we have it for a new `WP_UPLOAD_DIR` constant? It would just take precedence over the database value, and less than `UPLOADS`. I can't imagine any backward compatibility issues either.
     32
     33PS: There are barely 9 usages of `get_option( 'upload_path' )` across 4 files and 5 usages of `get_option( 'upload_url_path' )` across 3 files. If you all agree with adding those new constants I can make the necessary changes myself.