Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

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

    r45674 r46684  
    2222     * @param WP_Term $tag Current category term object.
    2323     */
    24     do_action( 'edit_category_form_pre', $tag );
     24    do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
    2525} elseif ( 'link_category' == $taxonomy ) {
    2626    /**
     
    3232     * @param WP_Term $tag Current link category term object.
    3333     */
    34     do_action( 'edit_link_category_form_pre', $tag );
     34    do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
    3535} else {
    3636    /**
     
    4242     * @param WP_Term $tag Current tag term object.
    4343     */
    44     do_action( 'edit_tag_form_pre', $tag );
     44    do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
    4545}
    4646
     
    202202             * @param WP_Term $tag Current category term object.
    203203             */
    204             do_action( 'edit_category_form_fields', $tag );
     204            do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    205205        } elseif ( 'link_category' == $taxonomy ) {
    206206            /**
     
    212212             * @param WP_Term $tag Current link category term object.
    213213             */
    214             do_action( 'edit_link_category_form_fields', $tag );
     214            do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    215215        } else {
    216216            /**
     
    222222             * @param WP_Term $tag Current tag term object.
    223223             */
    224             do_action( 'edit_tag_form_fields', $tag );
     224            do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    225225        }
    226226        /**
     
    242242if ( 'category' == $taxonomy ) {
    243243    /** This action is documented in wp-admin/edit-tags.php */
    244     do_action( 'edit_category_form', $tag );
     244    do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
    245245} elseif ( 'link_category' == $taxonomy ) {
    246246    /** This action is documented in wp-admin/edit-tags.php */
    247     do_action( 'edit_link_category_form', $tag );
     247    do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
    248248} else {
    249249    /**
     
    255255     * @param WP_Term $tag Current taxonomy term object.
    256256     */
    257     do_action( 'edit_tag_form', $tag );
     257    do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' );
    258258}
    259259/**
Note: See TracChangeset for help on using the changeset viewer.