Skip to content

Remove deprecated user contact methods from documentation and tests #9391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/wp-includes/author-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ function the_modified_author() {
* Valid values for the `$field` parameter include:
*
* - admin_color
* - aim
* - comment_shortcuts
* - description
* - display_name
* - first_name
* - ID
* - jabber
* - last_name
* - nickname
* - plugins_last_view
Expand All @@ -149,7 +147,6 @@ function the_modified_author() {
* - user_registered
* - user_status
* - user_url
* - yim
*
* @since 2.8.0
*
Expand Down
8 changes: 1 addition & 7 deletions src/wp-includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,7 @@ function validate_username( $username ) {
* @since 2.0.0
* @since 3.6.0 The `aim`, `jabber`, and `yim` fields were removed as default user contact
* methods for new installations. See wp_get_user_contact_methods().
* @since 6.8.0 The `aim`, `jabber`, and `yim` fields were completely removed.
* @since 4.7.0 The `locale` field can be passed to `$userdata`.
* @since 5.3.0 The `user_activation_key` field can be passed to `$userdata`.
* @since 5.3.0 The `spam` field can be passed to `$userdata` (Multisite only).
Expand Down Expand Up @@ -2954,13 +2955,6 @@ function _get_additional_user_keys( $user ) {
*/
function wp_get_user_contact_methods( $user = null ) {
$methods = array();
if ( get_site_option( 'initial_db_version' ) < 23588 ) {
$methods = array(
'aim' => __( 'AIM' ),
'yim' => __( 'Yahoo IM' ),
'jabber' => __( 'Jabber / Google Talk' ),
);
}

/**
* Filters the user contact methods.
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/tests/xmlrpc/wp/getUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function test_valid_user() {
'display_name' => 'First Last',
'user_url' => 'http://www.example.com/testuser',
'role' => 'author',
'aim' => 'wordpress',
'user_registered' => date_format( date_create( "@{$registered_date}" ), 'Y-m-d H:i:s' ),
);
$user_id = wp_insert_user( $user_data );
Expand Down
Loading