From c38bdce55be070403519539c1791e3d9d4708dcd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 Jan 2021 17:25:07 +0000 Subject: [PATCH] Docs: Correct description for `wp_parse_list()`. The function simply converts a comma- or space-separated list of scalar values to an array and does not perform any sanitization on its own. Follow-up to [44546]. Props johnjamesjacoby. See #51800. Built from https://develop.svn.wordpress.org/trunk@49941 git-svn-id: http://core.svn.wordpress.org/trunk@49640 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 880978df1c..eb4c4b6961 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4433,7 +4433,7 @@ function smilies_init() { } /** - * Merge user defined arguments into defaults array. + * Merges user defined arguments into defaults array. * * This function is used throughout WordPress to allow for both string or array * to be merged into another array. @@ -4462,12 +4462,12 @@ function wp_parse_args( $args, $defaults = array() ) { } /** - * Cleans up an array, comma- or space-separated list of scalar values. + * Converts a comma- or space-separated list of scalar values to an array. * * @since 5.1.0 * * @param array|string $list List of values. - * @return array Sanitized array of values. + * @return array Array of values. */ function wp_parse_list( $list ) { if ( ! is_array( $list ) ) { @@ -4478,7 +4478,7 @@ function wp_parse_list( $list ) { } /** - * Clean up an array, comma- or space-separated list of IDs. + * Cleans up an array, comma- or space-separated list of IDs. * * @since 3.0.0 * @@ -4492,7 +4492,7 @@ function wp_parse_id_list( $list ) { } /** - * Clean up an array, comma- or space-separated list of slugs. + * Cleans up an array, comma- or space-separated list of slugs. * * @since 4.7.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 66cb8a10bf..bd43343c98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49940'; +$wp_version = '5.7-alpha-49941'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.