Make WordPress Core

Ticket #21201: 21201.2.diff

File 21201.2.diff, 612 bytes (added by SergeyBiryukov, 13 years ago)

Adjusted PHPDocs

  • wp-includes/category.php

     
    165165 *
    166166 * @since 1.0.0
    167167 *
    168  * @param string $cat_name Optional. Default is 'General' and can be any category name.
     168 * @param string $cat_name Category name.
    169169 * @return int 0, if failure and ID of category on success.
    170170 */
    171 function get_cat_ID( $cat_name='General' ) {
     171function get_cat_ID( $cat_name ) {
    172172        $cat = get_term_by( 'name', $cat_name, 'category' );
    173173        if ( $cat )
    174174                return $cat->term_id;