summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-admin/includes/taxonomy.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-admin/includes/taxonomy.php')
-rw-r--r--src/wp-admin/includes/taxonomy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wp-admin/includes/taxonomy.php b/src/wp-admin/includes/taxonomy.php
index 7765084fa7..359cfafe2f 100644
--- a/src/wp-admin/includes/taxonomy.php
+++ b/src/wp-admin/includes/taxonomy.php
@@ -75,7 +75,7 @@ function wp_create_category( $cat_name, $category_parent = 0 ) {
* @param int $post_id Optional. The post ID. Default empty.
* @return int[] Array of IDs of categories assigned to the given post.
*/
-function wp_create_categories( $categories, $post_id = '' ) {
+function wp_create_categories( $categories, $post_id = 0 ) {
$cat_ids = array();
foreach ( $categories as $category ) {
$id = category_exists( $category );