WP_Filesystem_Base should declare $errors and $options as fields for use by subclasses.

See #30799.

Built from https://develop.svn.wordpress.org/trunk@31208


git-svn-id: http://core.svn.wordpress.org/trunk@31189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-01-16 17:10:43 +00:00
parent 35f3f7bf63
commit b29a20b90a
5 changed files with 5 additions and 7 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';

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31207';
$wp_version = '4.2-alpha-31208';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.