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

WordPress Trac noreply at wordpress.org
Thu Dec 8 06:50:10 UTC 2022


#57293: Implicit Mastodon domain (mastodon.com) for Social Icon in Footer Menu
Incorrect/ Non-Functional
---------------------------+-----------------------------
 Reporter:  triumvirate    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  6.1.1
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 = Reproduce:

 [https://wordpress.org/support/article/twenty-fifteen/#add-social-icons
 Follow this and add a mastodon profile URL]


 = Expected behavior:

 adding a link to a Mastodon URL replaces it, like e.g.
 [https://wordpress.org/support/article/twenty-twenty-one/#add-social-icons
 the other sites here], with the appropriate icon.

 Actual behavior: adding a link to a Mastodon instance URL doesn't replace
 it.

 = Details:

 As there is no entry in `social_icons_map` for `'mastodon'`, it defaults
 to only replacing URLs on the `mastodon.com` domain which, while humorous,
 [https://www.mastodon.com/ isn't effective because this isn't a social
 media website instance, but a Forestry Mulcher Company].

 = Definition of done:

 Adding a link to the following sites results in a Mastodon SVG being used
 (based on
 [https://instances.social/list/advanced#lang=&allowed=&prohibited=&min-
 users=&max-users= popularity]):

 {{{
 mastodon.social
 pawoo.net
 mstdn.jp
 mastodon.cloud
 mastodon.online
 counter.social
 mstdn.social
 mas.to
 mastodon.world
 gc2.jp
 mastodon.lol
 pixelfed.social
 mastodon.sdf.org
 c.im
 mastodonapp.uk
 universeodon.com
 mastodon.uno
 masto.ai
 techhub.social
 fosstodon.org
 brighteon.social
 mastodon.top
 mstdn.party
 mamot.fr
 infosec.exchange
 m.cmx.im
 ohai.social
 sfba.social
 troet.cafe
 mastodon.poppingboxes.org
 hachyderm.io
 alive.bar
 home.social
 kolektiva.social
 masthead.social
 }}}

 = Patch:
 https://gist.github.com/hasnolen/e2ded2c7e9b76919c0208ced213e63ab

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


More information about the wp-trac mailing list