public function getContextTitle() { if ( is_null( $this->mContextTitle ) ) { wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetAllCallers( 5 ) . ' with no title set.' ); global $wgTitle; return $wgTitle; } else { return $this->mContextTitle; } }
* Creating an EditPage instance without calling EditPage::setContextTitle() should be avoided and will be deprecated in a future release.
* (T176526) EditPage::getContextTitle() falling back to $wgTitle when the context title is unset is now deprecated; anything creating an EditPage instance should set the context title via ::setContextTitle().
rMW5cd20435dc1a: EditPage: Try to avoid using $wgTitle
Once that rolls out, we should check the logs, deprecate and eventually remove the $wgTitle fallback.