From 7ffc91fdd68c94f5b0815c8052470c8f242ca5e3 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Thu, 3 Jul 2014 19:21:34 +0000 Subject: [PATCH] Fix an incomplete docblock for `wp_create_categories()` as part of `$post/$post_id` cleanup. See #28388. git-svn-id: https://develop.svn.wordpress.org/trunk@28975 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/taxonomy.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/taxonomy.php b/src/wp-admin/includes/taxonomy.php index 8bb435245f..14618f8888 100644 --- a/src/wp-admin/includes/taxonomy.php +++ b/src/wp-admin/includes/taxonomy.php @@ -56,15 +56,15 @@ function wp_create_category( $cat_name, $parent = 0 ) { } /** - * {@internal Missing Short Description}} + * Create categories for the given post. * * @since 2.0.0 * - * @param unknown_type $categories - * @param unknown_type $post_id - * @return unknown + * @param array $categories List of categories to create. + * @param int $post_id Optional. The post ID. Default empty. + * @return List of categories to create for the given post. */ -function wp_create_categories($categories, $post_id = '') { +function wp_create_categories( $categories, $post_id = '' ) { $cat_ids = array (); foreach ($categories as $category) { if ($id = category_exists($category))