Docs: Add a @since note to wp_parse_id_list() and wp_parse_slug_list() about using wp_parse_list().

Follow-up to [44546], [49941].

Props joyously, dlh, pbiron.
See #52628.
Built from https://develop.svn.wordpress.org/trunk@51055


git-svn-id: http://core.svn.wordpress.org/trunk@50664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-06-01 21:21:57 +00:00
parent 21cf927961
commit b964d532e2
2 changed files with 3 additions and 1 deletions

View File

@ -4533,6 +4533,7 @@ function wp_parse_list( $list ) {
* Cleans 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 * @since 3.0.0
* @since 5.1.0 Refactored to use wp_parse_list().
* *
* @param array|string $list List of IDs. * @param array|string $list List of IDs.
* @return int[] Sanitized array of IDs. * @return int[] Sanitized array of IDs.
@ -4547,6 +4548,7 @@ function wp_parse_id_list( $list ) {
* Cleans 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 * @since 4.7.0
* @since 5.1.0 Refactored to use wp_parse_list().
* *
* @param array|string $list List of slugs. * @param array|string $list List of slugs.
* @return string[] Sanitized array of slugs. * @return string[] Sanitized array of slugs.

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.8-alpha-51054'; $wp_version = '5.8-alpha-51055';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.