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:
Mike Jolley 2017-10-02 13:17:03 +01:00 committed by GitHub
commit 1274687b82
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );