WordPress.org

Make WordPress Core

Ticket #10441: trac-10441-change-over-existing-deprecated-hooks.6.patch

File trac-10441-change-over-existing-deprecated-hooks.6.patch, 23.6 KB (added by jrf, 2 years ago)
  • src/wp-admin/edit-form-advanced.php

    From 798c2f7a1380f98cb0f8a2a6ee2d248e7ce9f10f Mon Sep 17 00:00:00 2001
    From: jrfnl <github_nospam@adviesenzo.nl>
    Date: Mon, 18 Jul 2016 00:22:30 +0200
    Subject: [PATCH] Change over existing deprecated hooks to use the new
     do_action_deprecated() or apply_filters_deprecated() functions.
    
    ---
     src/wp-admin/edit-form-advanced.php                |  4 ++--
     src/wp-admin/edit-tag-form.php                     | 28 +++++++++++-----------
     src/wp-admin/edit-tags.php                         | 24 +++++++++----------
     src/wp-admin/includes/class-wp-screen.php          | 18 +++++++-------
     .../includes/class-wp-terms-list-table.php         |  8 +++----
     src/wp-admin/includes/image-edit.php               | 12 +++++-----
     src/wp-admin/includes/media.php                    |  2 +-
     src/wp-includes/class-wp-rewrite.php               |  8 +++----
     src/wp-includes/class-wp.php                       |  4 ++--
     src/wp-includes/deprecated.php                     |  4 ++--
     src/wp-includes/post.php                           |  6 ++---
     src/wp-includes/rss.php                            |  2 +-
     src/wp-includes/taxonomy.php                       |  8 +++----
     src/wp-includes/user.php                           |  4 ++--
     src/wp-signup.php                                  |  2 +-
     15 files changed, 67 insertions(+), 67 deletions(-)
    
    diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php
    index bd229b9..f973fbd 100644
    a b if ( post_type_supports($post_type, 'custom-fields') ) 
    278278 * Fires in the middle of built-in meta box registration.
    279279 *
    280280 * @since 2.1.0
    281  * @deprecated 3.7.0 Use 'add_meta_boxes' instead.
     281 * @deprecated 3.7.0 Use {@see 'add_meta_boxes'} instead.
    282282 *
    283283 * @param WP_Post $post Post object.
    284284 */
    285 do_action( 'dbx_post_advanced', $post );
     285do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' );
    286286
    287287// Allow the Discussion meta box to show up if the post type supports comments,
    288288// or if comments or pings are open.
  • src/wp-admin/edit-tag-form.php

    diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php
    index 7d218dd..4720d03 100644
    a b if ( 'category' == $taxonomy ) { 
    1717         * Fires before the Edit Category form.
    1818         *
    1919         * @since 2.1.0
    20          * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
     20         * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
    2121         *
    2222         * @param object $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        /**
    2727         * Fires before the Edit Link Category form.
    2828         *
    2929         * @since 2.3.0
    30          * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
     30         * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
    3131         *
    3232         * @param object $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        /**
    3737         * Fires before the Edit Tag form.
    3838         *
    3939         * @since 2.5.0
    40          * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
     40         * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
    4141         *
    4242         * @param object $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
    4747/**
    do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy ); 
    189189                         * Fires after the Edit Category form fields are displayed.
    190190                         *
    191191                         * @since 2.9.0
    192                          * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
     192                         * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
    193193                         *
    194194                         * @param object $tag Current category term object.
    195195                         */
    196                         do_action( 'edit_category_form_fields', $tag );
     196                        do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    197197                } elseif ( 'link_category' == $taxonomy ) {
    198198                        /**
    199199                         * Fires after the Edit Link Category form fields are displayed.
    200200                         *
    201201                         * @since 2.9.0
    202                          * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
     202                         * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
    203203                         *
    204204                         * @param object $tag Current link category term object.
    205205                         */
    206                         do_action( 'edit_link_category_form_fields', $tag );
     206                        do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    207207                } else {
    208208                        /**
    209209                         * Fires after the Edit Tag form fields are displayed.
    210210                         *
    211211                         * @since 2.9.0
    212                          * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
     212                         * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
    213213                         *
    214214                         * @param object $tag Current tag term object.
    215215                         */
    216                         do_action( 'edit_tag_form_fields', $tag );
     216                        do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    217217                }
    218218                /**
    219219                 * Fires after the Edit Term form fields are displayed.
    if ( 'category' == $taxonomy ) { 
    242242         * Fires at the end of the Edit Term form.
    243243         *
    244244         * @since 2.5.0
    245          * @deprecated 3.0.0 Use {$taxonomy}_edit_form instead.
     245         * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form'} instead.
    246246         *
    247247         * @param object $tag Current taxonomy term object.
    248248         */
    249         do_action( 'edit_tag_form', $tag );
     249        do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' );
    250250}
    251251/**
    252252 * Fires at the end of the Edit Term form for all taxonomies.
  • src/wp-admin/edit-tags.php

    diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
    index dbb1f48..20d8a04 100644
    a b if ( current_user_can($tax->cap->edit_terms) ) { 
    351351                 * Fires before the Add Category form.
    352352                 *
    353353                 * @since 2.1.0
    354                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
     354                 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
    355355                 *
    356356                 * @param object $arg Optional arguments cast to an object.
    357357                 */
    358                 do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) );
     358                do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
    359359        } elseif ( 'link_category' == $taxonomy ) {
    360360                /**
    361361                 * Fires before the link category form.
    362362                 *
    363363                 * @since 2.3.0
    364                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
     364                 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
    365365                 *
    366366                 * @param object $arg Optional arguments cast to an object.
    367367                 */
    368                 do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) );
     368                do_action_deprecated( 'add_link_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
    369369        } else {
    370370                /**
    371371                 * Fires before the Add Tag form.
    372372                 *
    373373                 * @since 2.5.0
    374                  * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
     374                 * @deprecated 3.0.0 {@see '{$taxonomy}_pre_add_form'} instead.
    375375                 *
    376376                 * @param string $taxonomy The taxonomy slug.
    377377                 */
    378                 do_action( 'add_tag_form_pre', $taxonomy );
     378                do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' );
    379379        }
    380380
    381381        /**
    if ( 'category' == $taxonomy ) { 
    501501         * Fires at the end of the Edit Category form.
    502502         *
    503503         * @since 2.1.0
    504          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
     504         * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
    505505         *
    506506         * @param object $arg Optional arguments cast to an object.
    507507         */
    508         do_action( 'edit_category_form', (object) array( 'parent' => 0 ) );
     508        do_action_deprecated( 'edit_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
    509509} elseif ( 'link_category' == $taxonomy ) {
    510510        /**
    511511         * Fires at the end of the Edit Link form.
    512512         *
    513513         * @since 2.3.0
    514          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
     514         * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
    515515         *
    516516         * @param object $arg Optional arguments cast to an object.
    517517         */
    518         do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) );
     518        do_action_deprecated( 'edit_link_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
    519519} else {
    520520        /**
    521521         * Fires at the end of the Add Tag form.
    522522         *
    523523         * @since 2.7.0
    524          * @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
     524         * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
    525525         *
    526526         * @param string $taxonomy The taxonomy slug.
    527527         */
    528         do_action( 'add_tag_form', $taxonomy );
     528        do_action_deprecated( 'add_tag_form', array( $taxonomy ), '3.0.0', '{$taxonomy}_add_form' );
    529529}
    530530
    531531/**
  • src/wp-admin/includes/class-wp-screen.php

    diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
    index a7d9a1a..89fd280 100644
    a b final class WP_Screen { 
    732732                 * Filters the legacy contextual help list.
    733733                 *
    734734                 * @since 2.7.0
    735                  * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
    736                  *                   get_current_screen()->remove_help_tab() instead.
     735                 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
     736                 *                   {@see get_current_screen()->remove_help_tab()} instead.
    737737                 *
    738738                 * @param array     $old_compat_help Old contextual help.
    739739                 * @param WP_Screen $this            Current WP_Screen instance.
    740740                 */
    741                 self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this );
     741                self::$_old_compat_help = apply_filters_deprecated( 'contextual_help_list', array( self::$_old_compat_help, $this ), '3.3.0', false, __( 'Use get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab() instead.' ) );
    742742
    743743                $old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : '';
    744744
    final class WP_Screen { 
    746746                 * Filters the legacy contextual help text.
    747747                 *
    748748                 * @since 2.7.0
    749                  * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
    750                  *                   get_current_screen()->remove_help_tab() instead.
     749                 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
     750                 *                   {@see get_current_screen()->remove_help_tab()} instead.
    751751                 *
    752752                 * @param string    $old_help  Help text that appears on the screen.
    753753                 * @param string    $screen_id Screen ID.
    754754                 * @param WP_Screen $this      Current WP_Screen instance.
    755755                 *
    756756                 */
    757                 $old_help = apply_filters( 'contextual_help', $old_help, $this->id, $this );
     757                $old_help = apply_filters_deprecated( 'contextual_help', array( $old_help, $this->id, $this ), '3.3.0', false, __( 'Use get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab() instead.' ) );
    758758
    759759                // Default help only if there is no old-style block of text and no new-style help tabs.
    760760                if ( empty( $old_help ) && ! $this->get_help_tabs() ) {
    final class WP_Screen { 
    763763                         * Filters the default legacy contextual help text.
    764764                         *
    765765                         * @since 2.8.0
    766                          * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
    767                          *                   get_current_screen()->remove_help_tab() instead.
     766                         * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
     767                         *                   {@see get_current_screen()->remove_help_tab()} instead.
    768768                         *
    769769                         * @param string $old_help_default Default contextual help text.
    770770                         */
    771                         $default_help = apply_filters( 'default_contextual_help', '' );
     771                        $default_help = apply_filters_deprecated( 'default_contextual_help', array( '' ), '3.3.0', false, __( 'Use get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab() instead.' ) );
    772772                        if ( $default_help )
    773773                                $old_help = '<p>' . $default_help . '</p>';
    774774                }
  • src/wp-admin/includes/class-wp-terms-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php
    index e765794..1b398eb 100644
    a b class WP_Terms_List_Table extends WP_List_Table { 
    9191                         * Filters the number of terms displayed per page for the Tags list table.
    9292                         *
    9393                         * @since 2.7.0
    94                          * @deprecated 2.8.0 Use edit_tags_per_page instead.
     94                         * @deprecated 2.8.0 Use {@see 'edit_tags_per_page'} instead.
    9595                         *
    9696                         * @param int $tags_per_page Number of tags to be displayed. Default 20.
    9797                         */
    98                         $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page );
     98                        $tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' );
    9999                } elseif ( 'category' === $this->screen->taxonomy ) {
    100100                        /**
    101101                         * Filters the number of terms displayed per page for the Categories list table.
    class WP_Terms_List_Table extends WP_List_Table { 
    472472                 * Filters the action links displayed for each term in the Tags list table.
    473473                 *
    474474                 * @since 2.8.0
    475                  * @deprecated 3.0.0 Use {$taxonomy}_row_actions instead.
     475                 * @deprecated 3.0.0 Use {@see '{$taxonomy}_row_actions'} instead.
    476476                 *
    477477                 * @param array  $actions An array of action links to be displayed. Default
    478478                 *                        'Edit', 'Quick Edit', 'Delete', and 'View'.
    479479                 * @param object $tag     Term object.
    480480                 */
    481                 $actions = apply_filters( 'tag_row_actions', $actions, $tag );
     481                $actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' );
    482482
    483483                /**
    484484                 * Filters the action links displayed for each term in the terms list table.
  • src/wp-admin/includes/image-edit.php

    diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php
    index c614a77..de9004a 100644
    a b function wp_stream_image( $image, $mime_type, $post_id ) { 
    262262                 * Filters the GD image resource to be streamed to the browser.
    263263                 *
    264264                 * @since 2.9.0
    265                  * @deprecated 3.5.0 Use image_editor_save_pre instead.
     265                 * @deprecated 3.5.0 Use {@see 'image_editor_save_pre'} instead.
    266266                 *
    267267                 * @param resource $image   Image resource to be streamed.
    268268                 * @param int      $post_id Post ID.
    269269                 */
    270                 $image = apply_filters( 'image_save_pre', $image, $post_id );
     270                $image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' );
    271271
    272272                switch ( $mime_type ) {
    273273                        case 'image/jpeg':
    function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { 
    333333                 * returning that value instead.
    334334                 *
    335335                 * @since 2.9.0
    336                  * @deprecated 3.5.0 Use wp_save_image_editor_file instead.
     336                 * @deprecated 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.
    337337                 *
    338338                 * @param mixed           $override  Value to return instead of saving. Default null.
    339339                 * @param string          $filename  Name of the file to be saved.
    function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { 
    341341                 * @param string          $mime_type Image mime type.
    342342                 * @param int             $post_id   Post ID.
    343343                 */
    344                 $saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id );
     344                $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' );
    345345
    346346                if ( null !== $saved )
    347347                        return $saved;
    function image_edit_apply_changes( $image, $changes ) { 
    528528                 * Filters the GD image resource before applying changes to the image.
    529529                 *
    530530                 * @since 2.9.0
    531                  * @deprecated 3.5.0 Use wp_image_editor_before_change instead.
     531                 * @deprecated 3.5.0 Use {@see 'wp_image_editor_before_change'} instead.
    532532                 *
    533533                 * @param resource $image   GD image resource.
    534534                 * @param array    $changes Array of change operations.
    535535                 */
    536                 $image = apply_filters( 'image_edit_before_change', $image, $changes );
     536                $image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' );
    537537        }
    538538
    539539        foreach ( $changes as $operation ) {
  • src/wp-admin/includes/media.php

    diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
    index 8b95181..a3eced7 100644
    a b function media_buttons($editor_id = 'content') { 
    577577         *
    578578         * @param string $string Media buttons context. Default empty.
    579579         */
    580         $legacy_filter = apply_filters( 'media_buttons_context', '' );
     580        $legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', false, __( 'Use \'media_buttons\' action instead.' ) );
    581581
    582582        if ( $legacy_filter ) {
    583583                // #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.
  • src/wp-includes/class-wp-rewrite.php

    diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php
    index 2c57615..4842236 100644
    a b class WP_Rewrite { 
    14201420                                 * Filters rewrite rules used specifically for Tags.
    14211421                                 *
    14221422                                 * @since 2.3.0
    1423                                  * @deprecated 3.1.0 Use 'post_tag_rewrite_rules' instead
     1423                                 * @deprecated 3.1.0 Use {@see 'post_tag_rewrite_rules'} instead
    14241424                                 *
    14251425                                 * @param array $rules The rewrite rules generated for tags.
    14261426                                 */
    1427                                 $rules = apply_filters( 'tag_rewrite_rules', $rules );
     1427                                $rules = apply_filters_deprecated( 'tag_rewrite_rules', array( $rules ), '3.1.0', 'post_tag_rewrite_rules' );
    14281428                        }
    14291429
    14301430                        $this->extra_rules_top = array_merge($this->extra_rules_top, $rules);
    class WP_Rewrite { 
    15621562                 * Filters the list of rewrite rules formatted for output to an .htaccess file.
    15631563                 *
    15641564                 * @since 1.5.0
    1565                  * @deprecated 1.5.0 Use the mod_rewrite_rules filter instead.
     1565                 * @deprecated 1.5.0 Use the {@see 'mod_rewrite_rules'} filter instead.
    15661566                 *
    15671567                 * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.
    15681568                 */
    1569                 return apply_filters( 'rewrite_rules', $rules );
     1569                return apply_filters_deprecated( 'rewrite_rules', array( $rules ), '1.5.0', 'mod_rewrite_rules' );
    15701570        }
    15711571
    15721572        /**
  • src/wp-includes/class-wp.php

    diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php
    index 4a97183..b136c34 100644
    a b class WP { 
    535535                         * Filters the query string before parsing.
    536536                         *
    537537                         * @since 1.5.0
    538                          * @deprecated 2.1.0 Use 'query_vars' or 'request' filters instead.
     538                         * @deprecated 2.1.0 Use {@see 'query_vars'} or {@see 'request'} filters instead.
    539539                         *
    540540                         * @param string $query_string The query string to modify.
    541541                         */
    542                         $this->query_string = apply_filters( 'query_string', $this->query_string );
     542                        $this->query_string = apply_filters_deprecated( 'query_string', array( $this->query_string ), '2.1.0', false, __( 'Use \'query_vars\' or \'request\' filters instead.' ) );
    543543                        parse_str($this->query_string, $this->query_vars);
    544544                }
    545545        }
  • src/wp-includes/deprecated.php

    diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
    index 0d30113..9014191 100644
    a b function wp_richedit_pre($text) { 
    35533553                 *
    35543554                 * @param string $output Text for the rich text editor.
    35553555                 */
    3556                 return apply_filters( 'richedit_pre', '' );
     3556                return apply_filters_deprecated( 'richedit_pre', array( '' ), '4.3.0' );
    35573557        }
    35583558
    35593559        $output = convert_chars($text);
    function wp_htmledit_pre($output) { 
    35913591         *
    35923592         * @param string $output The HTML-formatted text.
    35933593         */
    3594         return apply_filters( 'htmledit_pre', $output );
     3594        return apply_filters_deprecated( 'htmledit_pre', array( $output ), '4.3.0' );
    35953595}
    35963596
    35973597/**
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index b6c2fae..55a7fe5 100644
    a b function get_posts_by_author_sql( $post_type, $full = true, $post_author = null, 
    53315331                 *
    53325332                 * @param string $cap Capability.
    53335333                 */
    5334                 if ( ! $cap = apply_filters( 'pub_priv_sql_capability', '' ) ) {
     5334                if ( ! $cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0', false, __( 'The hook transitioned from "somewhat useless" to "totally useless".' ) ) ) {
    53355335                        $cap = current_user_can( $post_type_obj->cap->read_private_posts );
    53365336                }
    53375337
    function _transition_post_status( $new_status, $old_status, $post ) { 
    57205720                 * Fires when a post's status is transitioned from private to published.
    57215721                 *
    57225722                 * @since 1.5.0
    5723                  * @deprecated 2.3.0 Use 'private_to_publish' instead.
     5723                 * @deprecated 2.3.0 Use {@see 'private_to_publish'} instead.
    57245724                 *
    57255725                 * @param int $post_id Post ID.
    57265726                 */
    5727                 do_action('private_to_published', $post->ID);
     5727                do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );
    57285728        }
    57295729
    57305730        // If published posts changed clear the lastpostmodified cache.
  • src/wp-includes/rss.php

    diff --git a/src/wp-includes/rss.php b/src/wp-includes/rss.php
    index 4c3fb15..593799a 100644
    a b _deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/class-simplepie.php' 
    2424 * @since 2.3.0
    2525 * @deprecated 3.0.0
    2626 */
    27 do_action( 'load_feed_engine' );
     27do_action_deprecated( 'load_feed_engine', array(), '3.0.0' );
    2828
    2929/** RSS feed constant. */
    3030define('RSS', 'RSS');
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 0aa97ec..adf5f6a 100644
    a b function get_term_link( $term, $taxonomy = '' ) { 
    41094109                 * Filters the tag link.
    41104110                 *
    41114111                 * @since 2.3.0
    4112                  * @deprecated 2.5.0 Use 'term_link' instead.
     4112                 * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    41134113                 *
    41144114                 * @param string $termlink Tag link URL.
    41154115                 * @param int    $term_id  Term ID.
    41164116                 */
    4117                 $termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
     4117                $termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
    41184118        } elseif ( 'category' == $taxonomy ) {
    41194119
    41204120                /**
    41214121                 * Filters the category link.
    41224122                 *
    41234123                 * @since 1.5.0
    4124                  * @deprecated 2.5.0 Use 'term_link' instead.
     4124                 * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    41254125                 *
    41264126                 * @param string $termlink Category link URL.
    41274127                 * @param int    $term_id  Term ID.
    41284128                 */
    4129                 $termlink = apply_filters( 'category_link', $termlink, $term->term_id );
     4129                $termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
    41304130        }
    41314131
    41324132        /**
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index e47ffd6..df3bd4f 100644
    a b function get_password_reset_key( $user ) { 
    20442044         * Use the {@see 'retrieve_password'} hook instead.
    20452045         *
    20462046         * @since 1.5.0
    2047          * @deprecated 1.5.1 Misspelled. Use 'retrieve_password' hook instead.
     2047         * @deprecated 1.5.1 Misspelled. Use {@see 'retrieve_password'} hook instead.
    20482048         *
    20492049         * @param string $user_login The user login name.
    20502050         */
    2051         do_action( 'retreive_password', $user->user_login );
     2051        do_action_deprecated( 'retreive_password', array( $user->user_login ), '1.5.1', 'retrieve_password' );
    20522052
    20532053        /**
    20542054         * Fires before a new password is retrieved.
  • src/wp-signup.php

    diff --git a/src/wp-signup.php b/src/wp-signup.php
    index 99bd2af..42e5d49 100644
    a b function validate_another_blog_signup() { 
    406406         *
    407407         * @param array $blog_meta_defaults An array of default blog meta variables.
    408408         */
    409         $meta_defaults = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults );
     409        $meta_defaults = apply_filters_deprecated( 'signup_create_blog_meta', array( $blog_meta_defaults ), '3.0.0', 'add_signup_meta' );
    410410
    411411        /**
    412412         * Filters the new default site meta variables.