Fix an incomplete docblock for `wp_create_categories()` as part of `$post/$post_id` cleanup.
See #28388. Built from https://develop.svn.wordpress.org/trunk@28975 git-svn-id: http://core.svn.wordpress.org/trunk@28764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
38749f273c
commit
0ac4474ce4
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue