We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c9185 commit a99b315Copy full SHA for a99b315
src/wp-admin/includes/taxonomy.php
@@ -48,9 +48,9 @@ function get_category_to_edit( $id ) {
48
*
49
* @since 2.0.0
50
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.
+ * @param string $cat_name Category name.
+ * @param int $category_parent Optional. ID of parent category.
+ * @return int The ID of category on success, or zero on failure.
54
*/
55
function wp_create_category( $cat_name, $category_parent = 0 ) {
56
$id = category_exists( $cat_name, $category_parent );
0 commit comments