| 1 | Index: wp-includes/wp-db.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/wp-db.php (revision 21483) |
|---|
| 4 | +++ wp-includes/wp-db.php (working copy) |
|---|
| 5 | @@ -556,17 +556,53 @@ |
|---|
| 6 | * |
|---|
| 7 | * @since 3.5.0 |
|---|
| 8 | * |
|---|
| 9 | - * @param string $var The private member to get, and optionally process |
|---|
| 10 | + * @param string $name The private member to get, and optionally process |
|---|
| 11 | * @return mixed The private member |
|---|
| 12 | */ |
|---|
| 13 | - function __get( $var ) { |
|---|
| 14 | - if ( 'col_info' == $var ) |
|---|
| 15 | + function __get( $name ) { |
|---|
| 16 | + if ( 'col_info' == $name ) |
|---|
| 17 | $this->load_col_info(); |
|---|
| 18 | |
|---|
| 19 | - return $this->$var; |
|---|
| 20 | + return $this->$name; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | /** |
|---|
| 24 | + * Magic function, for backwards compatibility |
|---|
| 25 | + * |
|---|
| 26 | + * @since 3.5.0 |
|---|
| 27 | + * |
|---|
| 28 | + * @param string $name The private member to set |
|---|
| 29 | + * @param mixed $value The value to set |
|---|
| 30 | + */ |
|---|
| 31 | + function __set( $name, $value ) { |
|---|
| 32 | + $this->$name = $value; |
|---|
| 33 | + } |
|---|
| 34 | + |
|---|
| 35 | + /** |
|---|
| 36 | + * Magic function, for backwards compatibility |
|---|
| 37 | + * |
|---|
| 38 | + * @since 3.5.0 |
|---|
| 39 | + * |
|---|
| 40 | + * @param string $name The private member to check |
|---|
| 41 | + * |
|---|
| 42 | + * @return bool If the member is set or not |
|---|
| 43 | + */ |
|---|
| 44 | + function __isset( $name ) { |
|---|
| 45 | + return isset( $this->$name ); |
|---|
| 46 | + } |
|---|
| 47 | + |
|---|
| 48 | + /** |
|---|
| 49 | + * Magic function, for backwards compatibility |
|---|
| 50 | + * |
|---|
| 51 | + * @since 3.5.0 |
|---|
| 52 | + * |
|---|
| 53 | + * @param string $name The private member to unset |
|---|
| 54 | + */ |
|---|
| 55 | + function __unset( $name ) { |
|---|
| 56 | + unset( $this->$name ); |
|---|
| 57 | + } |
|---|
| 58 | + |
|---|
| 59 | + /** |
|---|
| 60 | * Set $this->charset and $this->collate |
|---|
| 61 | * |
|---|
| 62 | * @since 3.1.0 |
|---|