Add default value to the autoupdate field
This commit is contained in:
parent
4f87723b6a
commit
36f3c2be5b
|
|
@ -39,7 +39,7 @@ if ( !class_exists(PluginInfo::class, false) ):
|
|||
public $downloaded;
|
||||
public $active_installs;
|
||||
public $last_updated;
|
||||
public $autoupdate;
|
||||
public $autoupdate = false;
|
||||
|
||||
public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything.
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ if ( !class_exists(Update::class, false) ):
|
|||
public $requires_php = false;
|
||||
public $icons = array();
|
||||
public $filename; //Plugin filename relative to the plugins directory.
|
||||
public $autoupdate;
|
||||
public $autoupdate = false;
|
||||
|
||||
protected static $extraFields = array(
|
||||
'id', 'homepage', 'tested', 'requires_php', 'upgrade_notice', 'icons', 'filename', 'autoupdate',
|
||||
|
|
|
|||
Loading…
Reference in New Issue