From 2c6bed050e85deede35c183b09cc1f15660c4529 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Tue, 8 Oct 2019 03:26:47 +0200
Subject: [PATCH] Use the correct function for deprecated hooks
---
src/wp-admin/edit-tag-form.php | 18 ++++++++--------
src/wp-admin/edit-tags.php | 12 +++++------
src/wp-admin/includes/class-wp-screen.php | 21 ++++++++++++++++---
.../includes/class-wp-terms-list-table.php | 4 ++--
src/wp-admin/includes/image-edit.php | 8 +++----
src/wp-admin/includes/media.php | 2 +-
src/wp-admin/includes/meta-boxes.php | 2 +-
src/wp-includes/class-wp-rewrite.php | 4 ++--
src/wp-includes/class-wp-xmlrpc-server.php | 4 ++--
src/wp-includes/class-wp.php | 7 ++++++-
src/wp-includes/post.php | 4 ++--
src/wp-includes/taxonomy.php | 4 ++--
src/wp-includes/user.php | 2 +-
src/wp-signup.php | 2 +-
14 files changed, 57 insertions(+), 37 deletions(-)
diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php
index 006c70774d..cf5c80ffa2 100644
|
a
|
b
|
if ( 'category' == $taxonomy ) {
|
| 21 | 21 | * |
| 22 | 22 | * @param WP_Term $tag Current category term object. |
| 23 | 23 | */ |
| 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' ); |
| 25 | 25 | } elseif ( 'link_category' == $taxonomy ) { |
| 26 | 26 | /** |
| 27 | 27 | * Fires before the Edit Link Category form. |
| … |
… |
if ( 'category' == $taxonomy ) {
|
| 31 | 31 | * |
| 32 | 32 | * @param WP_Term $tag Current link category term object. |
| 33 | 33 | */ |
| 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' ); |
| 35 | 35 | } else { |
| 36 | 36 | /** |
| 37 | 37 | * Fires before the Edit Tag form. |
| … |
… |
if ( 'category' == $taxonomy ) {
|
| 41 | 41 | * |
| 42 | 42 | * @param WP_Term $tag Current tag term object. |
| 43 | 43 | */ |
| 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' ); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| … |
… |
if ( isset( $tag->name ) ) {
|
| 201 | 201 | * |
| 202 | 202 | * @param WP_Term $tag Current category term object. |
| 203 | 203 | */ |
| 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' ); |
| 205 | 205 | } elseif ( 'link_category' == $taxonomy ) { |
| 206 | 206 | /** |
| 207 | 207 | * Fires after the Edit Link Category form fields are displayed. |
| … |
… |
if ( isset( $tag->name ) ) {
|
| 211 | 211 | * |
| 212 | 212 | * @param WP_Term $tag Current link category term object. |
| 213 | 213 | */ |
| 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' ); |
| 215 | 215 | } else { |
| 216 | 216 | /** |
| 217 | 217 | * Fires after the Edit Tag form fields are displayed. |
| … |
… |
if ( isset( $tag->name ) ) {
|
| 221 | 221 | * |
| 222 | 222 | * @param WP_Term $tag Current tag term object. |
| 223 | 223 | */ |
| 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' ); |
| 225 | 225 | } |
| 226 | 226 | /** |
| 227 | 227 | * Fires after the Edit Term form fields are displayed. |
| … |
… |
if ( isset( $tag->name ) ) {
|
| 241 | 241 | // Back compat hooks |
| 242 | 242 | if ( 'category' == $taxonomy ) { |
| 243 | 243 | /** 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' ); |
| 245 | 245 | } elseif ( 'link_category' == $taxonomy ) { |
| 246 | 246 | /** 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' ); |
| 248 | 248 | } else { |
| 249 | 249 | /** |
| 250 | 250 | * Fires at the end of the Edit Term form. |
| … |
… |
if ( 'category' == $taxonomy ) {
|
| 254 | 254 | * |
| 255 | 255 | * @param WP_Term $tag Current taxonomy term object. |
| 256 | 256 | */ |
| 257 | | do_action( 'edit_tag_form', $tag ); |
| | 257 | do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' ); |
| 258 | 258 | } |
| 259 | 259 | /** |
| 260 | 260 | * Fires at the end of the Edit Term form for all taxonomies. |
diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
index 80ab3ffdd8..d2cda2c633 100644
|
a
|
b
|
if ( $can_edit_terms ) {
|
| 378 | 378 | * |
| 379 | 379 | * @param object $arg Optional arguments cast to an object. |
| 380 | 380 | */ |
| 381 | | do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) ); |
| | 381 | do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' ); |
| 382 | 382 | } elseif ( 'link_category' == $taxonomy ) { |
| 383 | 383 | /** |
| 384 | 384 | * Fires before the link category form. |
| … |
… |
if ( $can_edit_terms ) {
|
| 388 | 388 | * |
| 389 | 389 | * @param object $arg Optional arguments cast to an object. |
| 390 | 390 | */ |
| 391 | | do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) ); |
| | 391 | do_action_deprecated( 'add_link_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' ); |
| 392 | 392 | } else { |
| 393 | 393 | /** |
| 394 | 394 | * Fires before the Add Tag form. |
| … |
… |
if ( $can_edit_terms ) {
|
| 398 | 398 | * |
| 399 | 399 | * @param string $taxonomy The taxonomy slug. |
| 400 | 400 | */ |
| 401 | | do_action( 'add_tag_form_pre', $taxonomy ); |
| | 401 | do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' ); |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | 404 | /** |
| … |
… |
if ( $can_edit_terms ) {
|
| 534 | 534 | * |
| 535 | 535 | * @param object $arg Optional arguments cast to an object. |
| 536 | 536 | */ |
| 537 | | do_action( 'edit_category_form', (object) array( 'parent' => 0 ) ); |
| | 537 | do_action_deprecated( 'edit_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' ); |
| 538 | 538 | } elseif ( 'link_category' == $taxonomy ) { |
| 539 | 539 | /** |
| 540 | 540 | * Fires at the end of the Edit Link form. |
| … |
… |
if ( $can_edit_terms ) {
|
| 544 | 544 | * |
| 545 | 545 | * @param object $arg Optional arguments cast to an object. |
| 546 | 546 | */ |
| 547 | | do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) ); |
| | 547 | do_action_deprecated( 'edit_link_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' ); |
| 548 | 548 | } else { |
| 549 | 549 | /** |
| 550 | 550 | * Fires at the end of the Add Tag form. |
| … |
… |
if ( $can_edit_terms ) {
|
| 554 | 554 | * |
| 555 | 555 | * @param string $taxonomy The taxonomy slug. |
| 556 | 556 | */ |
| 557 | | do_action( 'add_tag_form', $taxonomy ); |
| | 557 | do_action_deprecated( 'add_tag_form', array( $taxonomy ), '3.0.0', '{$taxonomy}_add_form' ); |
| 558 | 558 | } |
| 559 | 559 | |
| 560 | 560 | /** |
diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
index 41b20a1024..8d9a4fa072 100644
|
a
|
b
|
final class WP_Screen {
|
| 775 | 775 | * @param array $old_compat_help Old contextual help. |
| 776 | 776 | * @param WP_Screen $this Current WP_Screen instance. |
| 777 | 777 | */ |
| 778 | | self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this ); |
| | 778 | self::$_old_compat_help = apply_filters_deprecated( |
| | 779 | 'contextual_help_list', |
| | 780 | array( self::$_old_compat_help, $this ), |
| | 781 | '3.3.0', |
| | 782 | 'get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab()' |
| | 783 | ); |
| 779 | 784 | |
| 780 | 785 | $old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : ''; |
| 781 | 786 | |
| … |
… |
final class WP_Screen {
|
| 790 | 795 | * @param string $screen_id Screen ID. |
| 791 | 796 | * @param WP_Screen $this Current WP_Screen instance. |
| 792 | 797 | */ |
| 793 | | $old_help = apply_filters( 'contextual_help', $old_help, $this->id, $this ); |
| | 798 | $old_help = apply_filters_deprecated( |
| | 799 | 'contextual_help', |
| | 800 | array( $old_help, $this->id, $this ), |
| | 801 | '3.3.0', |
| | 802 | 'get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab()' |
| | 803 | ); |
| 794 | 804 | |
| 795 | 805 | // Default help only if there is no old-style block of text and no new-style help tabs. |
| 796 | 806 | if ( empty( $old_help ) && ! $this->get_help_tabs() ) { |
| … |
… |
final class WP_Screen {
|
| 804 | 814 | * |
| 805 | 815 | * @param string $old_help_default Default contextual help text. |
| 806 | 816 | */ |
| 807 | | $default_help = apply_filters( 'default_contextual_help', '' ); |
| | 817 | $default_help = apply_filters_deprecated( |
| | 818 | 'default_contextual_help', |
| | 819 | array( '' ), |
| | 820 | '3.3.0', |
| | 821 | 'get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab()' |
| | 822 | ); |
| 808 | 823 | if ( $default_help ) { |
| 809 | 824 | $old_help = '<p>' . $default_help . '</p>'; |
| 810 | 825 | } |
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 33ef9fa8d6..a537311d40 100644
|
a
|
b
|
class WP_Terms_List_Table extends WP_List_Table {
|
| 97 | 97 | * |
| 98 | 98 | * @param int $tags_per_page Number of tags to be displayed. Default 20. |
| 99 | 99 | */ |
| 100 | | $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page ); |
| | 100 | $tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' ); |
| 101 | 101 | } elseif ( 'category' === $this->screen->taxonomy ) { |
| 102 | 102 | /** |
| 103 | 103 | * Filters the number of terms displayed per page for the Categories list table. |
| … |
… |
class WP_Terms_List_Table extends WP_List_Table {
|
| 508 | 508 | * 'Edit', 'Quick Edit', 'Delete', and 'View'. |
| 509 | 509 | * @param WP_Term $tag Term object. |
| 510 | 510 | */ |
| 511 | | $actions = apply_filters( 'tag_row_actions', $actions, $tag ); |
| | 511 | $actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' ); |
| 512 | 512 | |
| 513 | 513 | /** |
| 514 | 514 | * Filters the action links displayed for each term in the terms list table. |
diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php
index 3d038f8391..519100acc3 100644
|
a
|
b
|
function wp_stream_image( $image, $mime_type, $attachment_id ) {
|
| 292 | 292 | * @param resource $image Image resource to be streamed. |
| 293 | 293 | * @param int $attachment_id The attachment post ID. |
| 294 | 294 | */ |
| 295 | | $image = apply_filters( 'image_save_pre', $image, $attachment_id ); |
| | 295 | $image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' ); |
| 296 | 296 | |
| 297 | 297 | switch ( $mime_type ) { |
| 298 | 298 | case 'image/jpeg': |
| … |
… |
function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
|
| 353 | 353 | _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); |
| 354 | 354 | |
| 355 | 355 | /** This filter is documented in wp-admin/includes/image-edit.php */ |
| 356 | | $image = apply_filters( 'image_save_pre', $image, $post_id ); |
| | 356 | $image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' );; |
| 357 | 357 | |
| 358 | 358 | /** |
| 359 | 359 | * Filters whether to skip saving the image file. |
| … |
… |
function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
|
| 370 | 370 | * @param string $mime_type Image mime type. |
| 371 | 371 | * @param int $post_id Post ID. |
| 372 | 372 | */ |
| 373 | | $saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id ); |
| | 373 | $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' ); |
| 374 | 374 | |
| 375 | 375 | if ( null !== $saved ) { |
| 376 | 376 | return $saved; |
| … |
… |
function image_edit_apply_changes( $image, $changes ) {
|
| 570 | 570 | * @param resource $image GD image resource. |
| 571 | 571 | * @param array $changes Array of change operations. |
| 572 | 572 | */ |
| 573 | | $image = apply_filters( 'image_edit_before_change', $image, $changes ); |
| | 573 | $image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' ); |
| 574 | 574 | } |
| 575 | 575 | |
| 576 | 576 | foreach ( $changes as $operation ) { |
diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
index b9e9acc99d..9838019ce4 100644
|
a
|
b
|
function media_buttons( $editor_id = 'content' ) {
|
| 652 | 652 | * |
| 653 | 653 | * @param string $string Media buttons context. Default empty. |
| 654 | 654 | */ |
| 655 | | $legacy_filter = apply_filters( 'media_buttons_context', '' ); |
| | 655 | $legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', 'media_buttons' ); |
| 656 | 656 | |
| 657 | 657 | if ( $legacy_filter ) { |
| 658 | 658 | // #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag. |
diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
index 7c5d72570c..4cf7378501 100644
|
a
|
b
|
function register_and_do_post_meta_boxes( $post ) {
|
| 1508 | 1508 | * |
| 1509 | 1509 | * @param WP_Post $post Post object. |
| 1510 | 1510 | */ |
| 1511 | | do_action( 'dbx_post_advanced', $post ); |
| | 1511 | do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' ); |
| 1512 | 1512 | |
| 1513 | 1513 | // Allow the Discussion meta box to show up if the post type supports comments, |
| 1514 | 1514 | // or if comments or pings are open. |
diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php
index bc96c083dc..f73617e066 100644
|
a
|
b
|
class WP_Rewrite {
|
| 1411 | 1411 | * |
| 1412 | 1412 | * @param array $rules The rewrite rules generated for tags. |
| 1413 | 1413 | */ |
| 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' ); |
| 1415 | 1415 | } |
| 1416 | 1416 | |
| 1417 | 1417 | $this->extra_rules_top = array_merge( $this->extra_rules_top, $rules ); |
| … |
… |
class WP_Rewrite {
|
| 1560 | 1560 | * |
| 1561 | 1561 | * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess. |
| 1562 | 1562 | */ |
| 1563 | | return apply_filters( 'rewrite_rules', $rules ); |
| | 1563 | return apply_filters_deprecated( 'rewrite_rules', array( $rules ), '1.5.0', 'mod_rewrite_rules' ); |
| 1564 | 1564 | } |
| 1565 | 1565 | |
| 1566 | 1566 | /** |
diff --git a/src/wp-includes/class-wp-xmlrpc-server.php b/src/wp-includes/class-wp-xmlrpc-server.php
index abef0329ef..377efd0463 100644
|
a
|
b
|
class wp_xmlrpc_server extends IXR_Server {
|
| 235 | 235 | * Respect old get_option() filters left for back-compat when the 'enable_xmlrpc' |
| 236 | 236 | * option was deprecated in 3.5.0. Use the 'xmlrpc_enabled' hook instead. |
| 237 | 237 | */ |
| 238 | | $enabled = apply_filters( 'pre_option_enable_xmlrpc', false ); |
| | 238 | $enabled = apply_filters_deprecated( 'pre_option_enable_xmlrpc', array( false ), '3.5.0', 'xmlrpc_enabled' ); |
| 239 | 239 | if ( false === $enabled ) { |
| 240 | | $enabled = apply_filters( 'option_enable_xmlrpc', true ); |
| | 240 | $enabled = apply_filters_deprecated( 'option_enable_xmlrpc', array( true ), '3.5.0', 'xmlrpc_enabled' ); |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | /** |
diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php
index 59f1a90dbb..0772426773 100644
|
a
|
b
|
class WP {
|
| 546 | 546 | * |
| 547 | 547 | * @param string $query_string The query string to modify. |
| 548 | 548 | */ |
| 549 | | $this->query_string = apply_filters( 'query_string', $this->query_string ); |
| | 549 | $this->query_string = apply_filters_deprecated( |
| | 550 | 'query_string', |
| | 551 | array( $this->query_string ), |
| | 552 | '2.1.0', |
| | 553 | 'query_vars or request' |
| | 554 | ); |
| 550 | 555 | parse_str( $this->query_string, $this->query_vars ); |
| 551 | 556 | } |
| 552 | 557 | } |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index eb98238d5e..2a598fc2fb 100644
|
a
|
b
|
function get_posts_by_author_sql( $post_type, $full = true, $post_author = null,
|
| 6325 | 6325 | * |
| 6326 | 6326 | * @param string $cap Capability. |
| 6327 | 6327 | */ |
| 6328 | | $cap = apply_filters( 'pub_priv_sql_capability', '' ); |
| | 6328 | $cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' ); |
| 6329 | 6329 | if ( ! $cap ) { |
| 6330 | 6330 | $cap = current_user_can( $post_type_obj->cap->read_private_posts ); |
| 6331 | 6331 | } |
| … |
… |
function _transition_post_status( $new_status, $old_status, $post ) {
|
| 6734 | 6734 | * |
| 6735 | 6735 | * @param int $post_id Post ID. |
| 6736 | 6736 | */ |
| 6737 | | do_action( 'private_to_published', $post->ID ); |
| | 6737 | do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' ); |
| 6738 | 6738 | } |
| 6739 | 6739 | |
| 6740 | 6740 | // If published posts changed clear the lastpostmodified cache. |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 4631a534dd..e861d921f5 100644
|
a
|
b
|
function get_term_link( $term, $taxonomy = '' ) {
|
| 4249 | 4249 | * @param string $termlink Tag link URL. |
| 4250 | 4250 | * @param int $term_id Term ID. |
| 4251 | 4251 | */ |
| 4252 | | $termlink = apply_filters( 'tag_link', $termlink, $term->term_id ); |
| | 4252 | $termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' ); |
| 4253 | 4253 | } elseif ( 'category' === $taxonomy ) { |
| 4254 | 4254 | |
| 4255 | 4255 | /** |
| … |
… |
function get_term_link( $term, $taxonomy = '' ) {
|
| 4261 | 4261 | * @param string $termlink Category link URL. |
| 4262 | 4262 | * @param int $term_id Term ID. |
| 4263 | 4263 | */ |
| 4264 | | $termlink = apply_filters( 'category_link', $termlink, $term->term_id ); |
| | 4264 | $termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' ); |
| 4265 | 4265 | } |
| 4266 | 4266 | |
| 4267 | 4267 | /** |
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 505048e57a..6c3a5fe85d 100644
|
a
|
b
|
function get_password_reset_key( $user ) {
|
| 2272 | 2272 | * |
| 2273 | 2273 | * @param string $user_login The user login name. |
| 2274 | 2274 | */ |
| 2275 | | do_action( 'retreive_password', $user->user_login ); |
| | 2275 | do_action_deprecated( 'retreive_password', array( $user->user_login ), '1.5.1', 'retrieve_password' ); |
| 2276 | 2276 | |
| 2277 | 2277 | /** |
| 2278 | 2278 | * Fires before a new password is retrieved. |
diff --git a/src/wp-signup.php b/src/wp-signup.php
index 8457c7059e..fc38eac6c9 100644
|
a
|
b
|
function validate_another_blog_signup() {
|
| 457 | 457 | * |
| 458 | 458 | * @param array $blog_meta_defaults An array of default blog meta variables. |
| 459 | 459 | */ |
| 460 | | $meta_defaults = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults ); |
| | 460 | $meta_defaults = apply_filters_deprecated( 'signup_create_blog_meta', array( $blog_meta_defaults ), '3.0.0', 'add_signup_meta' ); |
| 461 | 461 | |
| 462 | 462 | /** |
| 463 | 463 | * Filters the new default site meta variables. |