Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24704 closed enhancement (fixed)

Silence a warning when upload_tmp_dir is outside open_basedir

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


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 11 years ago.
Simple patch to suppress is_dir warning

Download all attachments as: .zip

Change History (4)

11 years ago

Simple patch to suppress is_dir warning

#1 @SergeyBiryukov
11 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).

#2 @wonderboymusic
11 years ago

  • Milestone changed from Future Release to 3.7

these are all marked 3.7-early

#3 @ryan
11 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.