From 6da3f40a9694ea902005b39c8ea64f1a9f640771 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 18 Oct 2012 01:40:42 +0000 Subject: [PATCH] Remove bogus optional value for get_cat_ID(). (Incorrect usage will result in a warning.) props Latz. fixes #21201. git-svn-id: https://develop.svn.wordpress.org/trunk@22260 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 724ffa04d6..f018d7cecb 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -165,10 +165,10 @@ function get_category_by_slug( $slug ) { * * @since 1.0.0 * - * @param string $cat_name Optional. Default is 'General' and can be any category name. + * @param string $cat_name Category name. * @return int 0, if failure and ID of category on success. */ -function get_cat_ID( $cat_name='General' ) { +function get_cat_ID( $cat_name ) { $cat = get_term_by( 'name', $cat_name, 'category' ); if ( $cat ) return $cat->term_id;