Coding Standards: Use strict comparison in `wp-inclues/class-wp-http-cookie.php`.
Follow-up to [10512]. See #53359. Built from https://develop.svn.wordpress.org/trunk@51822 git-svn-id: http://core.svn.wordpress.org/trunk@51429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a5e9b79ed
commit
01e6d31b3f
|
@ -187,7 +187,7 @@ class WP_Http_Cookie {
|
|||
|
||||
// Host - very basic check that the request URL ends with the domain restriction (minus leading dot).
|
||||
$domain = ( '.' === substr( $domain, 0, 1 ) ) ? substr( $domain, 1 ) : $domain;
|
||||
if ( substr( $url['host'], -strlen( $domain ) ) != $domain ) {
|
||||
if ( substr( $url['host'], -strlen( $domain ) ) !== $domain ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,7 @@ class WP_Http_Cookie {
|
|||
}
|
||||
|
||||
// Path - request path must start with path restriction.
|
||||
if ( substr( $url['path'], 0, strlen( $path ) ) != $path ) {
|
||||
if ( substr( $url['path'], 0, strlen( $path ) ) !== $path ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51821';
|
||||
$wp_version = '5.9-alpha-51822';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue