Changeset 10524 for trunk/wp-includes/http.php
- Timestamp:
- 02/08/2009 04:20:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r10512 r10524 1386 1386 } 1387 1387 } else { 1388 if ( !isset( $data['name'] ) ) 1389 return false; 1390 1388 1391 // Set properties based directly on parameters 1389 $this->name = $data['name']; 1390 $this->value = $data['value']; 1391 $this->expires = is_int( $data['expires'] ) ? $data['expires'] : strtotime( $data['expires'] ); 1392 $this->path = $data['path']; 1393 $this->domain = $data['domain']; 1392 $this->name = $data['name']; 1393 $this->value = isset( $data['value'] ) ? $data['value'] : ''; 1394 $this->path = isset( $data['path'] ) ? $data['path'] : ''; 1395 $this->domain = isset( $data['domain'] ) ? $data['domain'] : ''; 1396 if ( isset( $data['expires'] ) ) 1397 $this->expires = is_int( $data['expires'] ) ? $data['expires'] : strtotime( $data['expires'] ); 1398 else 1399 $this->expires = null; 1394 1400 } 1395 1401 }
Note: See TracChangeset
for help on using the changeset viewer.