Make WordPress Core


Ignore:
Timestamp:
10/02/2008 01:03:26 AM (16 years ago)
Author:
ryan
Message:

phpdoc for wp-admin/includes from jacobsantos. see #7527

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/taxonomy.php

    r8603 r9053  
    11<?php
     2/**
     3 * WordPress Taxonomy Administration API.
     4 *
     5 * @package WordPress
     6 * @subpackage Administration
     7 */
    28
    39//
     
    511//
    612
     13/**
     14 * {@internal Missing Short Description}}
     15 *
     16 * @since unknown
     17 *
     18 * @param unknown_type $cat_name
     19 * @return unknown
     20 */
    721function category_exists($cat_name) {
    822    $id = is_term($cat_name, 'category');
     
    1226}
    1327
     28/**
     29 * {@internal Missing Short Description}}
     30 *
     31 * @since unknown
     32 *
     33 * @param unknown_type $id
     34 * @return unknown
     35 */
    1436function get_category_to_edit( $id ) {
    1537    $category = get_category( $id, OBJECT, 'edit' );
     
    1739}
    1840
     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 */
    1950function wp_create_category( $cat_name, $parent = 0 ) {
    2051    if ( $id = category_exists($cat_name) )
     
    2455}
    2556
     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 */
    2666function wp_create_categories($categories, $post_id = '') {
    2767    $cat_ids = array ();
     
    4080}
    4181
     82/**
     83 * {@internal Missing Short Description}}
     84 *
     85 * @since unknown
     86 *
     87 * @param unknown_type $cat_ID
     88 * @return unknown
     89 */
    4290function wp_delete_category($cat_ID) {
    4391    $cat_ID = (int) $cat_ID;
     
    5199}
    52100
     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 */
    53110function wp_insert_category($catarr, $wp_error = false) {
    54111    $cat_defaults = array('cat_ID' => 0, 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '');
     
    100157}
    101158
     159/**
     160 * {@internal Missing Short Description}}
     161 *
     162 * @since unknown
     163 *
     164 * @param unknown_type $catarr
     165 * @return unknown
     166 */
    102167function wp_update_category($catarr) {
    103168    $cat_ID = (int) $catarr['cat_ID'];
     
    122187//
    123188
     189/**
     190 * {@internal Missing Short Description}}
     191 *
     192 * @since unknown
     193 *
     194 * @param unknown_type $post_id
     195 * @return unknown
     196 */
    124197function get_tags_to_edit( $post_id ) {
    125198    $post_id = (int) $post_id;
     
    140213}
    141214
     215/**
     216 * {@internal Missing Short Description}}
     217 *
     218 * @since unknown
     219 *
     220 * @param unknown_type $tag_name
     221 * @return unknown
     222 */
    142223function tag_exists($tag_name) {
    143224    return is_term($tag_name, 'post_tag');
    144225}
    145226
     227/**
     228 * {@internal Missing Short Description}}
     229 *
     230 * @since unknown
     231 *
     232 * @param unknown_type $tag_name
     233 * @return unknown
     234 */
    146235function wp_create_tag($tag_name) {
    147236    if ( $id = tag_exists($tag_name) )
Note: See TracChangeset for help on using the changeset viewer.