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
This commit is contained in:
Sergey Biryukov 2021-06-01 21:20:52 +00:00
parent f5ca52c617
commit 052550fca4

View File

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