From 3e0521c2cf436d9b791bff6a91e2637b3bb31334 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 24 May 2014 05:39:15 +0000 Subject: [PATCH] Add inline documentation for the `option_none_value` argument added to `wp_dropdown_users|categories()` in [28564]. Fixes #16625. Built from https://develop.svn.wordpress.org/trunk@28570 git-svn-id: http://core.svn.wordpress.org/trunk@28395 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 1 + wp-includes/user.php | 1 + 2 files changed, 2 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index acb1625cde..9eef28efe6 100644 --- a/wp-includes/category-template.php +++ b/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/wp-includes/user.php b/wp-includes/user.php index 7eef1a57d0..c7825de08b 100644 --- a/wp-includes/user.php +++ b/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'.