From 9d48ae36c3a4e19e6a830749a0696593c61b4ebb Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 13 Jan 2023 13:17:45 +0000 Subject: [PATCH] Bundled Themes: Add Mastodon domains for menu item icons. This changeset adds the top 10 Mastodon domains by popularity to Twenty Twenty and Twenty Twenty-One Social icon feature. Note: other Mastodon domains can be added to the array of domain mapping using `twentytwenty_social_icons_map` and `twenty_twenty_one_social_icons_map` filters. Props triumvirate, sabernhardt, audrasjb, peterwilsoncc, rryyaanndd, ianbelanger. Fixes #57293, #49099. git-svn-id: https://develop.svn.wordpress.org/trunk@55061 602fd350-edb4-49c9-b593-d223f7449a82 --- .../classes/class-twentytwenty-svg-icons.php | 12 ++++++++++++ .../classes/class-twenty-twenty-one-svg-icons.php | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php index 714b3a1454..0e576f0af6 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php @@ -214,6 +214,18 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { 'mail' => array( 'mailto:', ), + 'mastodon' => array( + 'mastodon.social', + 'pawoo.net', + 'mstdn.jp', + 'mastodon.cloud', + 'mastodon.online', + 'counter.social', + 'mstdn.social', + 'mas.to', + 'mastodon.world', + 'gc2.jp', + ), 'pocket' => array( 'getpocket.com', ), diff --git a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php index 3a82cf76ab..d88aabc094 100644 --- a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php +++ b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php @@ -127,6 +127,18 @@ class Twenty_Twenty_One_SVG_Icons { 'mail' => array( 'mailto:', ), + 'mastodon' => array( + 'mastodon.social', + 'pawoo.net', + 'mstdn.jp', + 'mastodon.cloud', + 'mastodon.online', + 'counter.social', + 'mstdn.social', + 'mas.to', + 'mastodon.world', + 'gc2.jp', + ), 'pocket' => array( 'getpocket.com', ),