diff --git a/Puc/v5p6/Plugin/PluginInfo.php b/Puc/v5p6/Plugin/PluginInfo.php index e05a264..a01411b 100644 --- a/Puc/v5p6/Plugin/PluginInfo.php +++ b/Puc/v5p6/Plugin/PluginInfo.php @@ -39,6 +39,7 @@ if ( !class_exists(PluginInfo::class, false) ): public $downloaded; public $active_installs; public $last_updated; + public $autoupdate = false; public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything. diff --git a/Puc/v5p6/Plugin/Update.php b/Puc/v5p6/Plugin/Update.php index 1ae7362..1d4101f 100644 --- a/Puc/v5p6/Plugin/Update.php +++ b/Puc/v5p6/Plugin/Update.php @@ -20,9 +20,10 @@ if ( !class_exists(Update::class, false) ): public $requires_php = false; public $icons = array(); public $filename; //Plugin filename relative to the plugins directory. + public $autoupdate = false; protected static $extraFields = array( - 'id', 'homepage', 'tested', 'requires_php', 'upgrade_notice', 'icons', 'filename', + 'id', 'homepage', 'tested', 'requires_php', 'upgrade_notice', 'icons', 'filename', 'autoupdate', ); /** @@ -86,6 +87,7 @@ if ( !class_exists(Update::class, false) ): $update->tested = $this->tested; $update->requires_php = $this->requires_php; $update->plugin = $this->filename; + $update->autoupdate = $this->autoupdate; if ( !empty($this->upgrade_notice) ) { $update->upgrade_notice = $this->upgrade_notice;