Skip to content

Commit a99b315

Browse files
committed
Change $cat_name to only accept string since ID is not intended
1 parent 74c9185 commit a99b315

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-admin/includes/taxonomy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ function get_category_to_edit( $id ) {
4848
*
4949
* @since 2.0.0
5050
*
51-
* @param int|string $cat_name Category name.
52-
* @param int $category_parent Optional. ID of parent category.
53-
* @return int The ID number of category on success, or zero on failure.
51+
* @param string $cat_name Category name.
52+
* @param int $category_parent Optional. ID of parent category.
53+
* @return int The ID 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)