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-includes/class-wp-rewrite.php

    r46661 r46684  
    14121412                 * @param string[] $rules Array of rewrite rules generated for tags, keyed by their regex pattern.
    14131413                 */
    1414                 $rules = apply_filters( 'tag_rewrite_rules', $rules );
     1414                $rules = apply_filters_deprecated( 'tag_rewrite_rules', array( $rules ), '3.1.0', 'post_tag_rewrite_rules' );
    14151415            }
    14161416
     
    15611561         * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.
    15621562         */
    1563         return apply_filters( 'rewrite_rules', $rules );
     1563        return apply_filters_deprecated( 'rewrite_rules', array( $rules ), '1.5.0', 'mod_rewrite_rules' );
    15641564    }
    15651565
Note: See TracChangeset for help on using the changeset viewer.