`WP_Filesystem_Base` should declare `$errors` and `$options` as fields for use by subclasses.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60f2983b2e
commit
b0c6a64fbd
|
@ -38,6 +38,10 @@ class WP_Filesystem_Base {
|
|||
*/
|
||||
public $method = '';
|
||||
|
||||
public $errors = null;
|
||||
|
||||
public $options = array();
|
||||
|
||||
/**
|
||||
* Return the path on the remote filesystem of ABSPATH.
|
||||
*
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
*/
|
||||
class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
public $link;
|
||||
public $errors = null;
|
||||
public $options = array();
|
||||
|
||||
public function __construct($opt='') {
|
||||
$this->method = 'ftpext';
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
*/
|
||||
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||
public $ftp = false;
|
||||
public $errors = null;
|
||||
public $options = array();
|
||||
|
||||
public function __construct($opt = '') {
|
||||
$this->method = 'ftpsockets';
|
||||
|
|
|
@ -38,8 +38,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
|||
public $link = false;
|
||||
public $sftp_link = false;
|
||||
public $keys = false;
|
||||
public $errors = array();
|
||||
public $options = array();
|
||||
|
||||
public function __construct($opt='') {
|
||||
$this->method = 'ssh2';
|
||||
|
|
Loading…
Reference in New Issue