plugin-update-checker/Puc/v4/DebugBar/ThemePanel.php
Yahnis Elsts 1e709c6199 Add branch name and authentication state (on/off) to the Debug Bar panel.
There's some code duplication here. Unpleasant.
2017-01-03 13:22:38 +02:00

21 lines
No EOL
507 B
PHP

<?php
if ( !class_exists('Puc_v4_DebugBar_ThemePanel', false) ):
class Puc_v4_DebugBar_ThemePanel extends Puc_v4_DebugBar_Panel {
/**
* @var Puc_v4_Theme_UpdateChecker
*/
protected $updateChecker;
protected function displayConfigHeader() {
$this->row('Theme directory', htmlentities($this->updateChecker->directoryName));
parent::displayConfigHeader();
}
protected function getUpdateFields() {
return array_merge(parent::getUpdateFields(), array('details_url'));
}
}
endif;