Skip to content

Commit 74c9185

Browse files
committed
Correct return docs for wp_create_category()
1 parent e90b2bd commit 74c9185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function get_category_to_edit( $id ) {
5050
*
5151
* @param int|string $cat_name Category name.
5252
* @param int $category_parent Optional. ID of parent category.
53-
* @return int|WP_Error
53+
* @return int The ID number of category on success, or zero on failure.
5454
*/
5555
function wp_create_category( $cat_name, $category_parent = 0 ) {
5656
$id = category_exists( $cat_name, $category_parent );

0 commit comments

Comments
 (0)