Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37488 closed defect (bug) (fixed)

Improve output buffering when used for request_filesystem_credentials()

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: 4.6 Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords: has-patch
Focuses: Cc:


wp_ajax_delete_theme(), wp_ajax_delete_plugin(), delete_theme() and delete_plugins() wrap request_filesystem_credentials() in ob_start() and ob_end_clean(). But the later is used in a condition which can lead to unexpected results since it's not always called.

Attachments (1)

37488.patch (4.4 KB) - added by ocean90 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @ocean90
8 years ago

  • Milestone changed from Awaiting Review to 4.6

#2 @ocean90
8 years ago

  • Component changed from Plugins to Filesystem API

#3 @ocean90
8 years ago

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

In 38167:

Filesystem API: Output buffering for request_filesystem_credentials() should wrap the function directly.

Previously ob_end_clean() was only called when the previous condition was successful which led to unexpected results when another output buffering was involved, like PHPUnit's.

Fixes #37488.

Note: See TracTickets for help on using tickets.