Changeset 56884 for branches/5.8/src/wp-includes/Requests/IRI.php
- Timestamp:
- 10/12/2023 03:14:45 PM (14 months ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 56833-56838
- Property svn:mergeinfo changed
-
branches/5.8/src/wp-includes/Requests/IRI.php
r50842 r56884 706 706 } 707 707 708 public function __wakeup() { 709 $class_props = get_class_vars( __CLASS__ ); 710 $string_props = array( 'scheme', 'iuserinfo', 'ihost', 'port', 'ipath', 'iquery', 'ifragment' ); 711 $array_props = array( 'normalization' ); 712 foreach ( $class_props as $prop => $default_value ) { 713 if ( in_array( $prop, $string_props, true ) && ! is_string( $this->$prop ) ) { 714 throw new UnexpectedValueException(); 715 } elseif ( in_array( $prop, $array_props, true ) && ! is_array( $this->$prop ) ) { 716 throw new UnexpectedValueException(); 717 } 718 $this->$prop = null; 719 } 720 } 721 708 722 /** 709 723 * Set the entire IRI. Returns true on success, false on failure (if there
Note: See TracChangeset
for help on using the changeset viewer.