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
This commit is contained in:
Sergey Biryukov 2021-01-06 17:25:07 +00:00
parent 05f174acf6
commit c38bdce55b
2 changed files with 6 additions and 6 deletions

View File

@ -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
*

View File

@ -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.