diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php index 14618f8888..a4fa571b55 100644 --- a/wp-admin/includes/taxonomy.php +++ b/wp-admin/includes/taxonomy.php @@ -15,8 +15,8 @@ * * @since 2.0.0 * - * @param unknown_type $cat_name - * @return unknown + * @param int|string $cat_name + * @return int */ function category_exists($cat_name, $parent = 0) { $id = term_exists($cat_name, 'category', $parent); @@ -30,8 +30,8 @@ function category_exists($cat_name, $parent = 0) { * * @since 2.0.0 * - * @param unknown_type $id - * @return unknown + * @param int $id + * @return object */ function get_category_to_edit( $id ) { $category = get_term( $id, 'category', OBJECT, 'edit' ); @@ -44,9 +44,9 @@ function get_category_to_edit( $id ) { * * @since 2.0.0 * - * @param unknown_type $cat_name - * @param unknown_type $parent - * @return unknown + * @param int|string $cat_name + * @param int $parent + * @return int|WP_Error */ function wp_create_category( $cat_name, $parent = 0 ) { if ( $id = category_exists($cat_name, $parent) ) @@ -190,8 +190,8 @@ function wp_update_category($catarr) { * * @since 2.3.0 * - * @param unknown_type $tag_name - * @return unknown + * @param int|string $tag_name + * @return mixed */ function tag_exists($tag_name) { return term_exists($tag_name, 'post_tag'); @@ -202,8 +202,8 @@ function tag_exists($tag_name) { * * @since 2.3.0 * - * @param unknown_type $tag_name - * @return unknown + * @param int|string $tag_name + * @return array|WP_Error */ function wp_create_tag($tag_name) { return wp_create_term( $tag_name, 'post_tag'); @@ -214,8 +214,8 @@ function wp_create_tag($tag_name) { * * @since 2.3.0 * - * @param unknown_type $post_id - * @return unknown + * @param int $post_id + * @return string|bool|WP_Error */ function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { return get_terms_to_edit( $post_id, $taxonomy); @@ -226,8 +226,8 @@ function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { * * @since 2.8.0 * - * @param unknown_type $post_id - * @return unknown + * @param int $post_id + * @return string|bool|WP_Error */ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { $post_id = (int) $post_id; @@ -273,8 +273,8 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { * * @since 2.8.0 * - * @param unknown_type $tag_name - * @return unknown + * @param int|string $tag_name + * @return array|WP_Error */ function wp_create_term($tag_name, $taxonomy = 'post_tag') { if ( $id = term_exists($tag_name, $taxonomy) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 360f4afba1..68649596ce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30196'; +$wp_version = '4.1-alpha-30197'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.