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

See #30224.

Built from https://develop.svn.wordpress.org/trunk@30197


git-svn-id: http://core.svn.wordpress.org/trunk@30197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-11-03 05:50:23 +00:00
parent 06f49a43a1
commit d9d825db72
2 changed files with 18 additions and 18 deletions

View File

@ -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) )

View File

@ -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.