mirror of
https://github.com/WenPai-org/lelms-copyright.git
synced 2026-02-25 06:09:41 +08:00
Added lelms-copyright-zh_CN.l10n.php for improved localization, updated zh_CN.po and zh_CN.mo with new and revised translations, and incremented plugin version to 1.1.9 in lelms-copyright.php. File permissions were also updated for several files.
38 lines
749 B
PHP
Executable file
38 lines
749 B
PHP
Executable file
<?php
|
|
namespace YahnisElsts\PluginUpdateChecker\v5p3;
|
|
|
|
use stdClass;
|
|
|
|
if ( !class_exists(Update::class, false) ):
|
|
|
|
/**
|
|
* A simple container class for holding information about an available update.
|
|
*
|
|
* @author Janis Elsts
|
|
* @access public
|
|
*/
|
|
abstract class Update extends Metadata {
|
|
public $slug;
|
|
public $version;
|
|
public $download_url;
|
|
public $translations = array();
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
protected function getFieldNames() {
|
|
return array('slug', 'version', 'download_url', 'translations');
|
|
}
|
|
|
|
public function toWpFormat() {
|
|
$update = new stdClass();
|
|
|
|
$update->slug = $this->slug;
|
|
$update->new_version = $this->version;
|
|
$update->package = $this->download_url;
|
|
|
|
return $update;
|
|
}
|
|
}
|
|
|
|
endif;
|