集成自动更新服务器

This commit is contained in:
文派备案 2025-03-26 15:30:33 +08:00
parent 71e7d64e41
commit 7f12edb6ae
124 changed files with 13116 additions and 2 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p3\Theme\UpdateChecker;
if ( !class_exists(ThemePanel::class, false) ):
class ThemePanel extends Panel {
/**
* @var 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;