Vendors YahnisElsts/plugin-update-checker v5.7 under vendor/ and wires it to poll updates.json on the repo main branch. WP surfaces new versions via Dashboard → Updates on its normal twice-daily cadence. PUC is vendored (not a submodule) so Gitea's archive/main.zip — the download target — includes it. Folder rename on install is handled by PUC's built-in upgrader_source_selection filter. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
569 B
PHP
26 lines
569 B
PHP
<?php
|
|
|
|
namespace YahnisElsts\PluginUpdateChecker\v5p7\DebugBar;
|
|
|
|
use YahnisElsts\PluginUpdateChecker\v5p7\Theme\UpdateChecker;
|
|
|
|
if ( !class_exists(ThemePanel::class, false) ):
|
|
|
|
class ThemePanel extends Panel {
|
|
/**
|
|
* @var UpdateChecker
|
|
*/
|
|
protected $updateChecker;
|
|
|
|
protected function displayConfigHeader() {
|
|
$this->row('Theme directory', esc_html($this->updateChecker->directoryName));
|
|
parent::displayConfigHeader();
|
|
}
|
|
|
|
protected function getUpdateFields() {
|
|
return array_merge(parent::getUpdateFields(), array('details_url'));
|
|
}
|
|
}
|
|
|
|
endif;
|