mirror of
https://github.com/WenPai-org/wpfonts.git
synced 2025-10-06 00:04:07 +08:00
集成更新服务器
This commit is contained in:
parent
d1d3b9606f
commit
cf165c6c26
124 changed files with 13125 additions and 1 deletions
41
lib/plugin-update-checker/Puc/v5p3/DebugBar/PluginPanel.php
Normal file
41
lib/plugin-update-checker/Puc/v5p3/DebugBar/PluginPanel.php
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;
|
||||
|
||||
use YahnisElsts\PluginUpdateChecker\v5p3\Plugin\UpdateChecker;
|
||||
|
||||
if ( !class_exists(PluginPanel::class, false) ):
|
||||
|
||||
class PluginPanel extends Panel {
|
||||
/**
|
||||
* @var UpdateChecker
|
||||
*/
|
||||
protected $updateChecker;
|
||||
|
||||
protected function displayConfigHeader() {
|
||||
$this->row('Plugin file', htmlentities($this->updateChecker->pluginFile));
|
||||
parent::displayConfigHeader();
|
||||
}
|
||||
|
||||
protected function getMetadataButton() {
|
||||
$requestInfoButton = '';
|
||||
if ( function_exists('get_submit_button') ) {
|
||||
$requestInfoButton = get_submit_button(
|
||||
'Request Info',
|
||||
'secondary',
|
||||
'puc-request-info-button',
|
||||
false,
|
||||
array('id' => $this->updateChecker->getUniqueName('request-info-button'))
|
||||
);
|
||||
}
|
||||
return $requestInfoButton;
|
||||
}
|
||||
|
||||
protected function getUpdateFields() {
|
||||
return array_merge(
|
||||
parent::getUpdateFields(),
|
||||
array('homepage', 'upgrade_notice', 'tested',)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
endif;
|
Loading…
Add table
Add a link
Reference in a new issue