Changeset 9053 for trunk/wp-admin/includes/taxonomy.php
- Timestamp:
- 10/02/2008 01:03:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/taxonomy.php
r8603 r9053 1 1 <?php 2 /** 3 * WordPress Taxonomy Administration API. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 2 8 3 9 // … … 5 11 // 6 12 13 /** 14 * {@internal Missing Short Description}} 15 * 16 * @since unknown 17 * 18 * @param unknown_type $cat_name 19 * @return unknown 20 */ 7 21 function category_exists($cat_name) { 8 22 $id = is_term($cat_name, 'category'); … … 12 26 } 13 27 28 /** 29 * {@internal Missing Short Description}} 30 * 31 * @since unknown 32 * 33 * @param unknown_type $id 34 * @return unknown 35 */ 14 36 function get_category_to_edit( $id ) { 15 37 $category = get_category( $id, OBJECT, 'edit' ); … … 17 39 } 18 40 41 /** 42 * {@internal Missing Short Description}} 43 * 44 * @since unknown 45 * 46 * @param unknown_type $cat_name 47 * @param unknown_type $parent 48 * @return unknown 49 */ 19 50 function wp_create_category( $cat_name, $parent = 0 ) { 20 51 if ( $id = category_exists($cat_name) ) … … 24 55 } 25 56 57 /** 58 * {@internal Missing Short Description}} 59 * 60 * @since unknown 61 * 62 * @param unknown_type $categories 63 * @param unknown_type $post_id 64 * @return unknown 65 */ 26 66 function wp_create_categories($categories, $post_id = '') { 27 67 $cat_ids = array (); … … 40 80 } 41 81 82 /** 83 * {@internal Missing Short Description}} 84 * 85 * @since unknown 86 * 87 * @param unknown_type $cat_ID 88 * @return unknown 89 */ 42 90 function wp_delete_category($cat_ID) { 43 91 $cat_ID = (int) $cat_ID; … … 51 99 } 52 100 101 /** 102 * {@internal Missing Short Description}} 103 * 104 * @since unknown 105 * 106 * @param unknown_type $catarr 107 * @param unknown_type $wp_error 108 * @return unknown 109 */ 53 110 function wp_insert_category($catarr, $wp_error = false) { 54 111 $cat_defaults = array('cat_ID' => 0, 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => ''); … … 100 157 } 101 158 159 /** 160 * {@internal Missing Short Description}} 161 * 162 * @since unknown 163 * 164 * @param unknown_type $catarr 165 * @return unknown 166 */ 102 167 function wp_update_category($catarr) { 103 168 $cat_ID = (int) $catarr['cat_ID']; … … 122 187 // 123 188 189 /** 190 * {@internal Missing Short Description}} 191 * 192 * @since unknown 193 * 194 * @param unknown_type $post_id 195 * @return unknown 196 */ 124 197 function get_tags_to_edit( $post_id ) { 125 198 $post_id = (int) $post_id; … … 140 213 } 141 214 215 /** 216 * {@internal Missing Short Description}} 217 * 218 * @since unknown 219 * 220 * @param unknown_type $tag_name 221 * @return unknown 222 */ 142 223 function tag_exists($tag_name) { 143 224 return is_term($tag_name, 'post_tag'); 144 225 } 145 226 227 /** 228 * {@internal Missing Short Description}} 229 * 230 * @since unknown 231 * 232 * @param unknown_type $tag_name 233 * @return unknown 234 */ 146 235 function wp_create_tag($tag_name) { 147 236 if ( $id = tag_exists($tag_name) )
Note: See TracChangeset
for help on using the changeset viewer.