WordPress.org

Make WordPress Core

Changeset 22260


Ignore:
Timestamp:
10/18/2012 01:40:42 AM (6 years ago)
Author:
nacin
Message:

Remove bogus optional value for get_cat_ID(). (Incorrect usage will result in a warning.) props Latz. fixes #21201.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r22116 r22260  
    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 )
Note: See TracChangeset for help on using the changeset viewer.