wp/wp-includes/Requests/Cookie.php
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
   286 				}
   286 				}
   287 
   287 
   288 				return $expiry_time;
   288 				return $expiry_time;
   289 
   289 
   290 			case 'domain':
   290 			case 'domain':
       
   291 				// Domains are not required as per RFC 6265 section 5.2.3
       
   292 				if (empty($value)) {
       
   293 					return null;
       
   294 				}
       
   295 
   291 				// Domain normalization, as per RFC 6265 section 5.2.3
   296 				// Domain normalization, as per RFC 6265 section 5.2.3
   292 				if ($value[0] === '.') {
   297 				if ($value[0] === '.') {
   293 					$value = substr($value, 1);
   298 					$value = substr($value, 1);
   294 				}
   299 				}
   295 
   300