WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#24704 closed enhancement (fixed)

Silence a warning when upload_tmp_dir is outside open_basedir

Reported by: dpash Owned by: ryan
Milestone: 3.7 Priority: normal
Severity: trivial Version: 3.5
Component: Filesystem API Keywords: has-patch commit 3.7-early
Focuses: Cc:

Description

If upload_tmp_dir is outside open_basedir, the get_temp_dir function will throw a warning when it checks to see if it can use upload_tmp_dir is usable as a writeable temporary directory. This patch will suppress this warning.

Attachments (1)

00000.patch (549 bytes) - added by dpash 2 years ago.
Simple patch to suppress is_dir warning

Download all attachments as: .zip

Change History (4)

@dpash2 years ago

Simple patch to suppress is_dir warning

comment:1 @SergeyBiryukov2 years ago

  • Component changed from General to Filesystem
  • Keywords commit 3.7-early added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from trunk to 3.5

Originally introduced in [12519], but looks like [22008] made this more prominent.

A similar fix was added in [22082] (see ticket:20778:25).

comment:2 @wonderboymusic2 years ago

  • Milestone changed from Future Release to 3.7

these are all marked 3.7-early

comment:3 @ryan2 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In 24995:

Silence is_dir() to avoud warning when upload_tmp_dir is outside open_basedir.

Props dpash
fixes #24704

Note: See TracTickets for help on using tickets.