Skip to content

Commit

Permalink
Docs: Add a @since note to wp_parse_id_list() and `wp_parse_slug_…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
SergeyBiryukov committed Jun 1, 2021
1 parent 21cf927 commit b964d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @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.
Expand Down

0 comments on commit b964d53

Please sign in to comment.