Fill in the @param types for the args for functions missing them in wp-admin/includes/taxonomy.php.

See #30224.


git-svn-id: https://develop.svn.wordpress.org/trunk@30197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-11-03 05:49:57 +00:00
parent 43d027f2af
commit 53df5b1a61

View File

@ -15,8 +15,8 @@
* *
* @since 2.0.0 * @since 2.0.0
* *
* @param unknown_type $cat_name * @param int|string $cat_name
* @return unknown * @return int
*/ */
function category_exists($cat_name, $parent = 0) { function category_exists($cat_name, $parent = 0) {
$id = term_exists($cat_name, 'category', $parent); $id = term_exists($cat_name, 'category', $parent);
@ -30,8 +30,8 @@ function category_exists($cat_name, $parent = 0) {
* *
* @since 2.0.0 * @since 2.0.0
* *
* @param unknown_type $id * @param int $id
* @return unknown * @return object
*/ */
function get_category_to_edit( $id ) { function get_category_to_edit( $id ) {
$category = get_term( $id, 'category', OBJECT, 'edit' ); $category = get_term( $id, 'category', OBJECT, 'edit' );
@ -44,9 +44,9 @@ function get_category_to_edit( $id ) {
* *
* @since 2.0.0 * @since 2.0.0
* *
* @param unknown_type $cat_name * @param int|string $cat_name
* @param unknown_type $parent * @param int $parent
* @return unknown * @return int|WP_Error
*/ */
function wp_create_category( $cat_name, $parent = 0 ) { function wp_create_category( $cat_name, $parent = 0 ) {
if ( $id = category_exists($cat_name, $parent) ) if ( $id = category_exists($cat_name, $parent) )
@ -190,8 +190,8 @@ function wp_update_category($catarr) {
* *
* @since 2.3.0 * @since 2.3.0
* *
* @param unknown_type $tag_name * @param int|string $tag_name
* @return unknown * @return mixed
*/ */
function tag_exists($tag_name) { function tag_exists($tag_name) {
return term_exists($tag_name, 'post_tag'); return term_exists($tag_name, 'post_tag');
@ -202,8 +202,8 @@ function tag_exists($tag_name) {
* *
* @since 2.3.0 * @since 2.3.0
* *
* @param unknown_type $tag_name * @param int|string $tag_name
* @return unknown * @return array|WP_Error
*/ */
function wp_create_tag($tag_name) { function wp_create_tag($tag_name) {
return wp_create_term( $tag_name, 'post_tag'); return wp_create_term( $tag_name, 'post_tag');
@ -214,8 +214,8 @@ function wp_create_tag($tag_name) {
* *
* @since 2.3.0 * @since 2.3.0
* *
* @param unknown_type $post_id * @param int $post_id
* @return unknown * @return string|bool|WP_Error
*/ */
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
return get_terms_to_edit( $post_id, $taxonomy); 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 * @since 2.8.0
* *
* @param unknown_type $post_id * @param int $post_id
* @return unknown * @return string|bool|WP_Error
*/ */
function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
$post_id = (int) $post_id; $post_id = (int) $post_id;
@ -273,8 +273,8 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @param unknown_type $tag_name * @param int|string $tag_name
* @return unknown * @return array|WP_Error
*/ */
function wp_create_term($tag_name, $taxonomy = 'post_tag') { function wp_create_term($tag_name, $taxonomy = 'post_tag') {
if ( $id = term_exists($tag_name, $taxonomy) ) if ( $id = term_exists($tag_name, $taxonomy) )