mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 19:24:32 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user