Changeset 13074
- Timestamp:
- 02/13/2010 02:35:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r12694 r13074 181 181 * 182 182 * @param int $cat_id Category ID 183 * @return string Category name 183 * @return string Category name, or an empty string if category doesn't exist. 184 184 */ 185 185 function get_cat_name( $cat_id ) { 186 186 $cat_id = (int) $cat_id; 187 187 $category = &get_category( $cat_id ); 188 if ( ! $category || is_wp_error( $category ) ) 189 return ''; 188 190 return $category->name; 189 191 }
Note: See TracChangeset
for help on using the changeset viewer.