diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 1a9baa21ca..0f29f1f3a3 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -1779,7 +1779,8 @@ class WP_Query { * @since 3.9.0 The `$default_value` argument was introduced. * * @param string $query_var Query variable key. - * @param mixed $default_value Optional. Value to return if the query variable is not set. Default empty string. + * @param mixed $default_value Optional. Value to return if the query variable is not set. + * Default empty string. * @return mixed Contents of the query variable. */ public function get( $query_var, $default_value = '' ) { diff --git a/wp-includes/query.php b/wp-includes/query.php index c980c73286..feb023ca81 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -15,17 +15,18 @@ * Retrieves the value of a query variable in the WP_Query class. * * @since 1.5.0 - * @since 3.9.0 The `$default` argument was introduced. + * @since 3.9.0 The `$default_value` argument was introduced. * * @global WP_Query $wp_query WordPress Query object. * - * @param string $var The variable key to retrieve. - * @param mixed $default Optional. Value to return if the query variable is not set. Default empty. + * @param string $query_var The variable key to retrieve. + * @param mixed $default_value Optional. Value to return if the query variable is not set. + * Default empty string. * @return mixed Contents of the query variable. */ -function get_query_var( $var, $default = '' ) { +function get_query_var( $query_var, $default_value = '' ) { global $wp_query; - return $wp_query->get( $var, $default ); + return $wp_query->get( $query_var, $default_value ); } /** @@ -67,12 +68,12 @@ function get_queried_object_id() { * * @global WP_Query $wp_query WordPress Query object. * - * @param string $var Query variable key. - * @param mixed $value Query variable value. + * @param string $query_var Query variable key. + * @param mixed $value Query variable value. */ -function set_query_var( $var, $value ) { +function set_query_var( $query_var, $value ) { global $wp_query; - $wp_query->set( $var, $value ); + $wp_query->set( $query_var, $value ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index f6a8200126..1a60a49dec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54961'; +$wp_version = '6.2-alpha-54962'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.