From cff4631f007f3e1989c2ba14211f440662a5cc69 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sat, 24 May 2014 05:38:06 +0000 Subject: [PATCH] Add inline documentation for the `option_none_value` argument added to `wp_dropdown_users|categories()` in [28564]. Fixes #16625. git-svn-id: https://develop.svn.wordpress.org/trunk@28570 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 1 + src/wp-includes/user.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index acb1625cde..9eef28efe6 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -292,6 +292,7 @@ function category_description( $category = 0 ) { * The list of arguments is below: * 'show_option_all' (string) - Text to display for showing all categories. * 'show_option_none' (string) - Text to display for showing no categories. + * 'option_none_value' (mixed) - Value to use when no category is selected. * 'orderby' (string) default is 'ID' - What column to use for ordering the * categories. * 'order' (string) default is 'ASC' - What direction to order categories. diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 7eef1a57d0..c7825de08b 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -1252,6 +1252,7 @@ function setup_userdata($for_user_id = '') { *
    *
  1. show_option_all - Text to show all and whether HTML option exists.
  2. *
  3. show_option_none - Text for show none and whether HTML option exists.
  4. + *
  5. option_none_value - Value to use when no option is selected.
  6. *
  7. hide_if_only_one_author - Don't create the dropdown if there is only one user.
  8. *
  9. orderby - SQL order by clause for what order the users appear. Default is 'display_name'.
  10. *
  11. order - Default is 'ASC'. Can also be 'DESC'.