Make WordPress Core


Ignore:
Timestamp:
08/18/2025 12:31:19 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Users: Remove deprecated user contact methods.

The three default contact methods (AIM, Yahoo IM, Jabber) were removed for new installations in WordPress 3.6.

This commit removes the remaining references from the codebase, as the associated services were discontinued quite a while ago.

The user_contactmethods filter is available for adding or removing contact methods.

Follow-up to [23588], [25606].

Props butterflymedia, birgire, Presskopp, yashjawale, SergeyBiryukov.
Fixes #44374.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r60634 r60644  
    29542954 * Sets up the user contact methods.
    29552955 *
    2956  * Default contact methods were removed in 3.6. A filter dictates contact methods.
     2956 * Default contact methods were removed for new installations in WordPress 3.6
     2957 * and completely removed from the codebase in WordPress 6.9.
     2958 *
     2959 * Use the {@see 'user_contactmethods'} filter to add or remove contact methods.
    29572960 *
    29582961 * @since 3.7.0
     2962 * @since 6.9.0 Removed references to `aim`, `jabber`, and `yim` contact methods.
    29592963 *
    29602964 * @param WP_User|null $user Optional. WP_User object.
     
    29632967function wp_get_user_contact_methods( $user = null ) {
    29642968    $methods = array();
    2965     if ( get_site_option( 'initial_db_version' ) < 23588 ) {
    2966         $methods = array(
    2967             'aim'    => __( 'AIM' ),
    2968             'yim'    => __( 'Yahoo IM' ),
    2969             'jabber' => __( 'Jabber / Google Talk' ),
    2970         );
    2971     }
    29722969
    29732970    /**
Note: See TracChangeset for help on using the changeset viewer.