[wp-trac] [WordPress Trac] #57293: Twenty Twenty-One: Incorrect Mastodon domain (mastodon.com) for Social Icon in Footer Menu

WordPress Trac noreply at wordpress.org
Fri Dec 9 06:43:35 UTC 2022


#57293: Twenty Twenty-One: Incorrect Mastodon domain (mastodon.com) for Social Icon
in Footer Menu
---------------------------+------------------------------
 Reporter:  triumvirate    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by sabernhardt):

 The `twenty_twenty_one_social_icons_map` filter (in a plugin or child
 theme) is how to adjust the array now, and it still should work for any
 domains we do not add in the theme.

 {{{#!php
 <?php
 function wptrac_tt1_mastodon( $social_icons_map ) {
         $social_icons_map['mastodon'] = array(
                 'mastodon.social',
                 'mastodon.cloud',
         );
         return $social_icons_map;
 }
 add_filter( 'twenty_twenty_one_social_icons_map', 'wptrac_tt1_mastodon' );
 }}}

 We should map at least the original Mastodon domain, `mastodon.social`, to
 correct the error. Thoughts about the cutoff:
 - Twenty Twenty-One's function checks a total of 49 domains, so more than
 30 domains for the same network is quite a lot.
 - The top ten by popularity all record more than 100,000 users, with a
 significantly lower number for the next.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57293#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list