Skip to content

Commit

Permalink
Remove deprecated social media fields
Browse files Browse the repository at this point in the history
These were deprecated in/hidden since WP 3.6, so we’re fine to presume that simply don’t exist - we don’t need to support those fields in CAP, and there’s a filter if someone does want them added back in (along with any other contact methods).
  • Loading branch information
gamebits authored and GaryJones committed Jul 24, 2023
1 parent 6789ce7 commit 87a3794
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
15 changes: 0 additions & 15 deletions php/class-coauthors-guest-authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -1062,21 +1062,6 @@ function get_guest_author_fields( $groups = 'all' ) {
'group' => 'contact-info',
'input' => 'url',
),
array(
'key' => 'aim',
'label' => __( 'AIM', 'co-authors-plus' ),
'group' => 'contact-info',
),
array(
'key' => 'yahooim',
'label' => __( 'Yahoo IM', 'co-authors-plus' ),
'group' => 'contact-info',
),
array(
'key' => 'jabber',
'label' => __( 'Jabber / Google Talk', 'co-authors-plus' ),
'group' => 'contact-info',
),
array(
'key' => 'description',
'label' => __( 'Biographical Info', 'co-authors-plus' ),
Expand Down
5 changes: 1 addition & 4 deletions tests/test-coauthors-guest-authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,6 @@ public function test_get_guest_author_fields() {
'user_email',
'linked_account',
'website',
'aim',
'yahooim',
'jabber',
'description',
);

Expand All @@ -219,7 +216,7 @@ public function test_get_guest_author_fields() {
$fields = $guest_author_obj->get_guest_author_fields( 'contact-info' );
$keys = wp_list_pluck( $fields, 'key' );

$this->assertEquals( array( 'user_email', 'website', 'aim', 'yahooim', 'jabber' ), $keys );
$this->assertEquals( array( 'user_email', 'website' ), $keys );

// Checks all the meta fields with group "about".
$fields = $guest_author_obj->get_guest_author_fields( 'about' );
Expand Down

0 comments on commit 87a3794

Please sign in to comment.