diff --git a/wp-includes/class-wp-error.php b/wp-includes/class-wp-error.php index eb13145c58..448482ef7f 100644 --- a/wp-includes/class-wp-error.php +++ b/wp-includes/class-wp-error.php @@ -24,18 +24,16 @@ class WP_Error { * * @since 2.1.0 * @var array - * @access private */ - private $errors = array(); + public $errors = array(); /** * Stores the list of data for error codes. * * @since 2.1.0 * @var array - * @access private */ - private $error_data = array(); + public $error_data = array(); /** * Initialize the error. @@ -64,58 +62,6 @@ class WP_Error { $this->error_data[$code] = $data; } - /** - * Make private properties readable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to get. - * @return mixed Property. - */ - public function __get( $name ) { - return $this->$name; - } - - /** - * Make private properties settable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to set. - * @param mixed $value Property value. - * @return mixed Newly-set property. - */ - public function __set( $name, $value ) { - return $this->$name = $value; - } - - /** - * Make private properties checkable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to check if set. - * @return bool Whether the property is set. - */ - public function __isset( $name ) { - return isset( $this->$name ); - } - - /** - * Make private properties un-settable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to unset. - */ - public function __unset( $name ) { - unset( $this->$name ); - } - /** * Retrieve all error codes. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 38fcbb9476..50e834c6dc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31137'; +$wp_version = '4.2-alpha-31138'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.