From 052550fca4d45bdf48b0c6c43f897d14ad4ffc23 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Jun 2021 21:20:52 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@51055 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 043491e310..0ba059ba8e 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4533,6 +4533,7 @@ function wp_parse_list( $list ) { * Cleans up an array, comma- or space-separated list of IDs. * * @since 3.0.0 + * @since 5.1.0 Refactored to use wp_parse_list(). * * @param array|string $list List 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. * * @since 4.7.0 + * @since 5.1.0 Refactored to use wp_parse_list(). * * @param array|string $list List of slugs. * @return string[] Sanitized array of slugs.