Changeset 31138
- Timestamp:
- 01/11/2015 12:00:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-error.php
r31126 r31138 25 25 * @since 2.1.0 26 26 * @var array 27 * @access private 28 */ 29 private $errors = array(); 27 */ 28 public $errors = array(); 30 29 31 30 /** … … 34 33 * @since 2.1.0 35 34 * @var array 36 * @access private 37 */ 38 private $error_data = array(); 35 */ 36 public $error_data = array(); 39 37 40 38 /** … … 63 61 if ( ! empty($data) ) 64 62 $this->error_data[$code] = $data; 65 }66 67 /**68 * Make private properties readable for backwards compatibility.69 *70 * @since 4.0.071 * @access public72 *73 * @param string $name Property to get.74 * @return mixed Property.75 */76 public function __get( $name ) {77 return $this->$name;78 }79 80 /**81 * Make private properties settable for backwards compatibility.82 *83 * @since 4.0.084 * @access public85 *86 * @param string $name Property to set.87 * @param mixed $value Property value.88 * @return mixed Newly-set property.89 */90 public function __set( $name, $value ) {91 return $this->$name = $value;92 }93 94 /**95 * Make private properties checkable for backwards compatibility.96 *97 * @since 4.0.098 * @access public99 *100 * @param string $name Property to check if set.101 * @return bool Whether the property is set.102 */103 public function __isset( $name ) {104 return isset( $this->$name );105 }106 107 /**108 * Make private properties un-settable for backwards compatibility.109 *110 * @since 4.0.0111 * @access public112 *113 * @param string $name Property to unset.114 */115 public function __unset( $name ) {116 unset( $this->$name );117 63 } 118 64
Note: See TracChangeset
for help on using the changeset viewer.