`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:
Scott Taylor 2015-01-16 17:09:35 +00:00
parent 60f2983b2e
commit b0c6a64fbd
4 changed files with 4 additions and 6 deletions

View File

@ -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.
*

View File

@ -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';

View File

@ -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';

View File

@ -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';