Changeset 51824
- Timestamp:
- 09/19/2021 04:58:43 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-cookie.php
r51822 r51824 94 94 public function __construct( $data, $requested_url = '' ) { 95 95 if ( $requested_url ) { 96 $ arrURL= parse_url( $requested_url );97 } 98 if ( isset( $ arrURL['host'] ) ) {99 $this->domain = $ arrURL['host'];100 } 101 $this->path = isset( $ arrURL['path'] ) ? $arrURL['path'] : '/';96 $parsed_url = parse_url( $requested_url ); 97 } 98 if ( isset( $parsed_url['host'] ) ) { 99 $this->domain = $parsed_url['host']; 100 } 101 $this->path = isset( $parsed_url['path'] ) ? $parsed_url['path'] : '/'; 102 102 if ( '/' !== substr( $this->path, -1 ) ) { 103 103 $this->path = dirname( $this->path ) . '/';
Note: See TracChangeset
for help on using the changeset viewer.