WordPress.org

Make WordPress Core

Changeset 42822


Ignore:
Timestamp:
03/10/2018 02:00:10 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use WP_Term instead of generic object type for the $tag parameter in wp-admin/edit-tag-form.php hook docs.

Props xhezairi, ocean90.
Fixes #43507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r42343 r42822  
    2020     * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
    2121     *
    22      * @param object $tag Current category term object.
     22     * @param WP_Term $tag Current category term object.
    2323     */
    2424    do_action( 'edit_category_form_pre', $tag );
     
    3030     * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
    3131     *
    32      * @param object $tag Current link category term object.
     32     * @param WP_Term $tag Current link category term object.
    3333     */
    3434    do_action( 'edit_link_category_form_pre', $tag );
     
    4040     * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
    4141     *
    42      * @param object $tag Current tag term object.
     42     * @param WP_Term $tag Current tag term object.
    4343     */
    4444    do_action( 'edit_tag_form_pre', $tag );
     
    6363 * @since 3.0.0
    6464 *
    65  * @param object $tag      Current taxonomy term object.
    66  * @param string $taxonomy Current $taxonomy slug.
     65 * @param WP_Term $tag      Current taxonomy term object.
     66 * @param string  $taxonomy Current $taxonomy slug.
    6767 */
    6868do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
     
    114114 * @since 4.5.0
    115115 *
    116  * @param object $tag      Current taxonomy term object.
    117  * @param string $taxonomy Current $taxonomy slug.
     116 * @param WP_Term $tag      Current taxonomy term object.
     117 * @param string  $taxonomy Current $taxonomy slug.
    118118 */
    119119do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
     
    143143             * @since 4.4.0 The `$tag` parameter was added.
    144144             *
    145              * @param string         $slug The editable slug. Will be either a term slug or post URI depending
    146              *                             upon the context in which it is evaluated.
    147              * @param object|WP_Post $tag  Term or WP_Post object.
     145             * @param string          $slug The editable slug. Will be either a term slug or post URI depending
     146             *                              upon the context in which it is evaluated.
     147             * @param WP_Term|WP_Post $tag  Term or WP_Post object.
    148148             */
    149149            $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : '';
     
    196196             * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
    197197             *
    198              * @param object $tag Current category term object.
     198             * @param WP_Term $tag Current category term object.
    199199             */
    200200            do_action( 'edit_category_form_fields', $tag );
     
    206206             * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
    207207             *
    208              * @param object $tag Current link category term object.
     208             * @param WP_Term $tag Current link category term object.
    209209             */
    210210            do_action( 'edit_link_category_form_fields', $tag );
     
    216216             * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
    217217             *
    218              * @param object $tag Current tag term object.
     218             * @param WP_Term $tag Current tag term object.
    219219             */
    220220            do_action( 'edit_tag_form_fields', $tag );
     
    228228         * @since 3.0.0
    229229         *
    230          * @param object $tag      Current taxonomy term object.
    231          * @param string $taxonomy Current taxonomy slug.
     230         * @param WP_Term $tag      Current taxonomy term object.
     231         * @param string  $taxonomy Current taxonomy slug.
    232232         */
    233233        do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );
     
    249249     * @deprecated 3.0.0 Use {$taxonomy}_edit_form instead.
    250250     *
    251      * @param object $tag Current taxonomy term object.
     251     * @param WP_Term $tag Current taxonomy term object.
    252252     */
    253253    do_action( 'edit_tag_form', $tag );
     
    260260 * @since 3.0.0
    261261 *
    262  * @param object $tag      Current taxonomy term object.
    263  * @param string $taxonomy Current taxonomy slug.
     262 * @param WP_Term $tag      Current taxonomy term object.
     263 * @param string  $taxonomy Current taxonomy slug.
    264264 */
    265265do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.