Skip to content

Commit 052550f

Browse files
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
1 parent f5ca52c commit 052550f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wp-includes/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,6 +4533,7 @@ function wp_parse_list( $list ) {
45334533
* Cleans up an array, comma- or space-separated list of IDs.
45344534
*
45354535
* @since 3.0.0
4536+
* @since 5.1.0 Refactored to use wp_parse_list().
45364537
*
45374538
* @param array|string $list List of IDs.
45384539
* @return int[] Sanitized array of IDs.
@@ -4547,6 +4548,7 @@ function wp_parse_id_list( $list ) {
45474548
* Cleans up an array, comma- or space-separated list of slugs.
45484549
*
45494550
* @since 4.7.0
4551+
* @since 5.1.0 Refactored to use wp_parse_list().
45504552
*
45514553
* @param array|string $list List of slugs.
45524554
* @return string[] Sanitized array of slugs.

0 commit comments

Comments
 (0)