diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index fbf9b9326e..232f147f96 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -314,6 +314,7 @@ function category_description( $category = 0 ) { * * @since 2.1.0 * @since 4.2.0 Introduced the `value_field` argument. + * @since 4.6.0 Introduced the `required` argument. * * @param string|array $args { * Optional. Array or string of arguments to generate a categories drop-down element. @@ -351,6 +352,8 @@ function category_description( $category = 0 ) { * @type string|array $taxonomy Name of the category or categories to retrieve. Default 'category'. * @type bool $hide_if_empty True to skip generating markup if no categories are found. * Default false (create select element even if no categories are found). + * @type bool $required Whether the \n"; + $output = "