Merge pull request #17013 from woocommerce/fix/wp_upload_dir-readonly-filesystem
Fix warnings for wp_upload_dir on read-only filesystem
This commit is contained in:
commit
1274687b82
|
@ -202,7 +202,7 @@ final class WooCommerce {
|
|||
* Define WC Constants.
|
||||
*/
|
||||
private function define_constants() {
|
||||
$upload_dir = wp_upload_dir();
|
||||
$upload_dir = wp_upload_dir( null, false );
|
||||
|
||||
$this->define( 'WC_ABSPATH', dirname( WC_PLUGIN_FILE ) . '/' );
|
||||
$this->define( 'WC_PLUGIN_BASENAME', plugin_basename( WC_PLUGIN_FILE ) );
|
||||
|
|
Loading…
Reference in New Issue