Changeset 31376
- Timestamp:
- 02/09/2015 02:21:26 AM (10 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/includes/taxonomy.php
r30197 r31376 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.