Changeset 37870 for trunk/src/wp-includes/class-wp-network.php
- Timestamp:
- 06/26/2016 01:22:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-network.php
r37658 r37870 19 19 * @since 4.4.0 20 20 * 21 * @property int $id 21 22 * @property int $site_id 22 23 */ … … 26 27 * Network ID. 27 28 * 28 * A numeric string, for compatibility reasons. 29 * 30 * @since 4.4.0 31 * @access public 32 * @var string 33 */ 34 public $id; 29 * @since 4.4.0 30 * @since 4.6.0 Type changed from string to int. 31 * @access private 32 * @var int 33 */ 34 private $id; 35 35 36 36 /** … … 153 153 public function __get( $key ) { 154 154 switch ( $key ) { 155 case 'id'; 156 return (int) $this->id; 155 157 case 'blog_id': 156 158 return $this->blog_id; … … 175 177 public function __isset( $key ) { 176 178 switch ( $key ) { 179 case 'id': 177 180 case 'blog_id': 178 181 case 'site_id': … … 196 199 public function __set( $key, $value ) { 197 200 switch ( $key ) { 201 case 'id': 202 $this->id = (int) $value; 203 break; 198 204 case 'blog_id': 199 205 case 'site_id':
Note: See TracChangeset
for help on using the changeset viewer.