Ticket #21201: 21201.diff
File 21201.diff, 598 bytes (added by , 13 years ago) |
---|
-
wp-includes/category.php
165 165 * 166 166 * @since 1.0.0 167 167 * 168 * @param string $cat_name Optional. Default is 'General' and can be any category name.168 * @param string $cat_name. 169 169 * @return int 0, if failure and ID of category on success. 170 170 */ 171 function get_cat_ID( $cat_name ='General') {171 function get_cat_ID( $cat_name ) { 172 172 $cat = get_term_by( 'name', $cat_name, 'category' ); 173 173 if ( $cat ) 174 174 return $cat->term_id;