Opened 6 years ago

Closed 4 years ago

#5109 closed defect (bug) (fixed)

Patch (wp-includes/functions.php): eliminate triggered error from wp_ob_end_flush_all()

Reported by: richcon Owned by: anonymous
Priority: normal Milestone: 2.8
Component: Optimization Version: 2.7
Severity: normal Keywords: has-patch tested
Cc:

Description

The line from wp_ob_end_flush_all():

1416 while ( @ob_end_flush() );

triggers a notice-level error when there aren't any more buffers to flush, which is then logged when error logging is enabled. The included patch rewrites the function to avoid this.

Attachments (2)

functions.diff (372 bytes) - added by richcon 6 years ago.
Patch
functions.patch (360 bytes) - added by mrmist 4 years ago.
refreshed against 10289

Download all attachments as: .zip

Change History (6)

richcon6 years ago

Patch

  • Keywords needs-testing added

Patch should be used, but most likely would need testing.

mrmist4 years ago

refreshed against 10289

  • Milestone changed from 2.9 to 2.8
  • Version changed from 2.3 to 2.7
  • Component changed from General to Optimization
  • Keywords tested added; needs-testing removed

comment:4   ryan4 years ago

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

(In [11020]) Fix warning in wp_ob_end_flush_all(). Props richcon. fixes #5109

Note: See TracTickets for help on using tickets.