mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
Coding Standards: Rename the $arrURL
variable to $parsed_url
in WP_Http_Cookie::__construct()
.
This fixes a `Variable "$arrURL" is not in valid snake_case format` WPCS warning. Follow-up to [10509], [25044], [45667], [51823]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51824 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
be12fd20ef
commit
4d669c9ec5
@ -93,12 +93,12 @@ class WP_Http_Cookie {
|
||||
*/
|
||||
public function __construct( $data, $requested_url = '' ) {
|
||||
if ( $requested_url ) {
|
||||
$arrURL = parse_url( $requested_url );
|
||||
$parsed_url = parse_url( $requested_url );
|
||||
}
|
||||
if ( isset( $arrURL['host'] ) ) {
|
||||
$this->domain = $arrURL['host'];
|
||||
if ( isset( $parsed_url['host'] ) ) {
|
||||
$this->domain = $parsed_url['host'];
|
||||
}
|
||||
$this->path = isset( $arrURL['path'] ) ? $arrURL['path'] : '/';
|
||||
$this->path = isset( $parsed_url['path'] ) ? $parsed_url['path'] : '/';
|
||||
if ( '/' !== substr( $this->path, -1 ) ) {
|
||||
$this->path = dirname( $this->path ) . '/';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user