Page MenuHomePhabricator

Remove wfClearOutputBuffers
Open, Needs TriagePublic

Description

The global function wfClearOutputBuffers only contains a single line, wfResetOutputBuffers( false );, and only has two known callers, both in core. I suggest using wfResetOutputBuffers( false ); directly in the two callers and deprecating and removing the global function.

Codesearch: https://codesearch.wmcloud.org/search/?q=wfClearOutputBuffers&i=nope&files=&repos=

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 650569 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Deprecate a bunch of global functions

https://gerrit.wikimedia.org/r/650569

Change 650569 merged by jenkins-bot:
[mediawiki/core@master] Deprecate a bunch of global functions

https://gerrit.wikimedia.org/r/650569