Make WordPress Core

Changeset 28975


Ignore:
Timestamp:
07/03/2014 07:21:34 PM (10 years ago)
Author:
DrewAPicture
Message:

Fix an incomplete docblock for wp_create_categories() as part of $post/$post_id cleanup.

See #28388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/taxonomy.php

    r28561 r28975  
    5757
    5858/**
    59  * {@internal Missing Short Description}}
    60  *
    61  * @since 2.0.0
    62  *
    63  * @param unknown_type $categories
    64  * @param unknown_type $post_id
    65  * @return unknown
    66  */
    67 function wp_create_categories($categories, $post_id = '') {
     59 * Create categories for the given post.
     60 *
     61 * @since 2.0.0
     62 *
     63 * @param array $categories List of categories to create.
     64 * @param int   $post_id    Optional. The post ID. Default empty.
     65 * @return List of categories to create for the given post.
     66 */
     67function wp_create_categories( $categories, $post_id = '' ) {
    6868    $cat_ids = array ();
    6969    foreach ($categories as $category) {
Note: See TracChangeset for help on using the changeset viewer.