mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user