Changeset 31140
- Timestamp:
- 01/11/2015 01:25:19 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r31090 r31140 12 12 13 13 /** 14 * {@internal Missing Short Description}} 15 * 16 * @since 2.0.0 17 * 18 * @param int|string $cat_name 19 * @return int 20 */ 21 function category_exists($cat_name, $parent = 0) { 14 * Check whether a category exists. 15 * 16 * @since 2.0.0 17 * 18 * @see term_exists() 19 * 20 * @param int|string $cat_name Category name. 21 * @param int $parent Optional. ID of parent term. 22 * @return mixed 23 */ 24 function category_exists( $cat_name, $parent = null ) { 22 25 $id = term_exists($cat_name, 'category', $parent); 23 26 if ( is_array($id) )
Note: See TracChangeset
for help on using the changeset viewer.