From 4892fd7bac26dff3b2b25a9def4aadd7d078c4c6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 Sep 2021 16:59:56 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@51824 git-svn-id: http://core.svn.wordpress.org/trunk@51431 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-cookie.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-http-cookie.php b/wp-includes/class-wp-http-cookie.php index a80bc48a9f..ec3425d83b 100644 --- a/wp-includes/class-wp-http-cookie.php +++ b/wp-includes/class-wp-http-cookie.php @@ -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 ) . '/'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6d603870b0..da2e9127b1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51823'; +$wp_version = '5.9-alpha-51824'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.