Changeset 50842 for trunk/src/wp-includes/Requests/IRI.php
- Timestamp:
- 05/11/2021 07:40:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/IRI.php
r46586 r50842 68 68 * Scheme 69 69 * 70 * @var string|null 71 */ 72 protected $scheme = null; 73 74 /** 75 * User Information 76 * 77 * @var string|null 78 */ 79 protected $iuserinfo = null; 80 81 /** 82 * ihost 83 * 84 * @var string|null 85 */ 86 protected $ihost = null; 87 88 /** 89 * Port 90 * 91 * @var string|null 92 */ 93 protected $port = null; 94 95 /** 96 * ipath 97 * 70 98 * @var string 71 99 */ 72 protected $scheme = null;73 74 /**75 * User Information76 *77 * @var string78 */79 protected $iuserinfo = null;80 81 /**82 * ihost83 *84 * @var string85 */86 protected $ihost = null;87 88 /**89 * Port90 *91 * @var string92 */93 protected $port = null;94 95 /**96 * ipath97 *98 * @var string99 */100 100 protected $ipath = ''; 101 101 … … 103 103 * iquery 104 104 * 105 * @var string 105 * @var string|null 106 106 */ 107 107 protected $iquery = null; 108 108 109 109 /** 110 * ifragment 110 * ifragment|null 111 111 * 112 112 * @var string … … 119 119 * Each key is the scheme, each value is an array with each key as the IRI 120 120 * part and value as the default value for that part. 121 * 122 * @var array 121 123 */ 122 124 protected $normalization = array( … … 250 252 * Returns false if $base is not absolute, otherwise an IRI. 251 253 * 252 * @param IRI|string $base (Absolute) Base IRI253 * @param IRI|string $relative Relative IRI254 * @return IRI|false254 * @param Requests_IRI|string $base (Absolute) Base IRI 255 * @param Requests_IRI|string $relative Relative IRI 256 * @return Requests_IRI|false 255 257 */ 256 258 public static function absolutize($base, $relative) { … … 420 422 protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false) { 421 423 // Normalize as many pct-encoded sections as possible 422 $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array( &$this, 'remove_iunreserved_percent_encoded'), $string);424 $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array($this, 'remove_iunreserved_percent_encoded'), $string); 423 425 424 426 // Replace invalid percent characters … … 1011 1013 * Get the complete IRI 1012 1014 * 1013 * @return string 1015 * @return string|false 1014 1016 */ 1015 1017 protected function get_iri() { … … 1048 1050 * Get the complete iauthority 1049 1051 * 1050 * @return string 1052 * @return string|null 1051 1053 */ 1052 1054 protected function get_iauthority() {
Note: See TracChangeset
for help on using the changeset viewer.