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:
parent
43d027f2af
commit
53df5b1a61
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user