Skip to content

Commit 6ff9ef7

Browse files
committed
chore: align $post_id param default with doctype in wp_create_categories()
1 parent 719de37 commit 6ff9ef7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function wp_create_category( $cat_name, $category_parent = 0 ) {
7575
* @param int $post_id Optional. The post ID. Default empty.
7676
* @return int[] Array of IDs of categories assigned to the given post.
7777
*/
78-
function wp_create_categories( $categories, $post_id = '' ) {
78+
function wp_create_categories( $categories, $post_id = 0 ) {
7979
$cat_ids = array();
8080
foreach ( $categories as $category ) {
8181
$id = category_exists( $category );

0 commit comments

Comments
 (0)