Make WordPress Core

Changeset 30197


Ignore:
Timestamp:
11/03/2014 05:49:57 AM (10 years ago)
Author:
wonderboymusic
Message:

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

See #30224.

File:
1 edited

Legend:

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

    r28975 r30197  
    1616 * @since 2.0.0
    1717 *
    18  * @param unknown_type $cat_name
    19  * @return unknown
     18 * @param int|string $cat_name
     19 * @return int
    2020 */
    2121function category_exists($cat_name, $parent = 0) {
     
    3131 * @since 2.0.0
    3232 *
    33  * @param unknown_type $id
    34  * @return unknown
     33 * @param int $id
     34 * @return object
    3535 */
    3636function get_category_to_edit( $id ) {
     
    4545 * @since 2.0.0
    4646 *
    47  * @param unknown_type $cat_name
    48  * @param unknown_type $parent
    49  * @return unknown
     47 * @param int|string $cat_name
     48 * @param int        $parent
     49 * @return int|WP_Error
    5050 */
    5151function wp_create_category( $cat_name, $parent = 0 ) {
     
    191191 * @since 2.3.0
    192192 *
    193  * @param unknown_type $tag_name
    194  * @return unknown
     193 * @param int|string $tag_name
     194 * @return mixed
    195195 */
    196196function tag_exists($tag_name) {
     
    203203 * @since 2.3.0
    204204 *
    205  * @param unknown_type $tag_name
    206  * @return unknown
     205 * @param int|string $tag_name
     206 * @return array|WP_Error
    207207 */
    208208function wp_create_tag($tag_name) {
     
    215215 * @since 2.3.0
    216216 *
    217  * @param unknown_type $post_id
    218  * @return unknown
     217 * @param int $post_id
     218 * @return string|bool|WP_Error
    219219 */
    220220function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
     
    227227 * @since 2.8.0
    228228 *
    229  * @param unknown_type $post_id
    230  * @return unknown
     229 * @param int $post_id
     230 * @return string|bool|WP_Error
    231231 */
    232232function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
     
    274274 * @since 2.8.0
    275275 *
    276  * @param unknown_type $tag_name
    277  * @return unknown
     276 * @param int|string $tag_name
     277 * @return array|WP_Error
    278278 */
    279279function wp_create_term($tag_name, $taxonomy = 'post_tag') {
Note: See TracChangeset for help on using the changeset viewer.