wp/wp-includes/class-wp-network.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   129 	 *
   129 	 *
   130 	 * @param WP_Network|object $network A network object.
   130 	 * @param WP_Network|object $network A network object.
   131 	 */
   131 	 */
   132 	public function __construct( $network ) {
   132 	public function __construct( $network ) {
   133 		foreach ( get_object_vars( $network ) as $key => $value ) {
   133 		foreach ( get_object_vars( $network ) as $key => $value ) {
   134 			$this->$key = $value;
   134 			$this->__set( $key, $value );
   135 		}
   135 		}
   136 
   136 
   137 		$this->_set_site_name();
   137 		$this->_set_site_name();
   138 		$this->_set_cookie_domain();
   138 		$this->_set_cookie_domain();
   139 	}
   139 	}