From 3eab979c6bb3a394533ab53f0fa78a927e62f182 Mon Sep 17 00:00:00 2001 From: Evan Herman Date: Tue, 22 Jul 2025 15:13:53 -0400 Subject: [PATCH 1/3] Update twitter name/icon --- includes/core.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/core.php b/includes/core.php index 62c7a5ae..2bba6cd0 100755 --- a/includes/core.php +++ b/includes/core.php @@ -1195,9 +1195,9 @@ function get_available_social_icons() { 'placeholder' => 'https://facebook.com/user', ), 'twitter' => array( - 'label' => esc_html__( 'Twitter', 'go' ), - 'icon' => get_theme_file_path( 'dist/images/social/twitter.svg' ), - 'placeholder' => 'https://twitter.com/user', + 'label' => esc_html__( 'X', 'go' ), + 'icon' => get_theme_file_path( 'dist/images/social/x.svg' ), + 'placeholder' => 'https://x.com/user', ), 'instagram' => array( 'label' => esc_html__( 'Instagram', 'go' ), From af7d15133340cdd658cee584b2688d34a55e4cad Mon Sep 17 00:00:00 2001 From: Evan Herman Date: Tue, 22 Jul 2025 15:15:55 -0400 Subject: [PATCH 2/3] Update x icon, update bluesky icon --- .dev/assets/shared/images/social/bluesky.svg | 4 +--- .dev/assets/shared/images/social/x.svg | 1 + languages/go.json | 2 +- languages/go.pot | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .dev/assets/shared/images/social/x.svg diff --git a/.dev/assets/shared/images/social/bluesky.svg b/.dev/assets/shared/images/social/bluesky.svg index 6d555f43..1f0463ac 100644 --- a/.dev/assets/shared/images/social/bluesky.svg +++ b/.dev/assets/shared/images/social/bluesky.svg @@ -1,3 +1 @@ - - - + \ No newline at end of file diff --git a/.dev/assets/shared/images/social/x.svg b/.dev/assets/shared/images/social/x.svg new file mode 100644 index 00000000..69cf5fec --- /dev/null +++ b/.dev/assets/shared/images/social/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/languages/go.json b/languages/go.json index 5ffc8d54..0677a2c6 100644 --- a/languages/go.json +++ b/languages/go.json @@ -160,7 +160,7 @@ "9a916bca2f53405524c5467058f78fde": "Footer 3", "cf64efb396b872a492aff56944cf469b": "Footer 4", "d85544fce402c7a2a96a48078edaf203": "Facebook", - "2491bc9c7d8731e1ae33124093bc7026": "Twitter", + "02129bb861061d1a052c592e2dc6b383": "X", "55f015a0c5605702f913536afe70cfb0": "Instagram", "e884c507c5198a4578a84498f7a323e2": "LinkedIn", "f6925de5c5888c8e835efe6fe82a3982": "Xing", diff --git a/languages/go.pot b/languages/go.pot index e3778f51..4b363dbb 100644 --- a/languages/go.pot +++ b/languages/go.pot @@ -8,7 +8,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2025-07-22T18:53:17+00:00\n" +"POT-Creation-Date: 2025-07-22T19:15:19+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: go\n" @@ -824,7 +824,7 @@ msgid "Facebook" msgstr "" #: includes/core.php:1198 -msgid "Twitter" +msgid "X" msgstr "" #: includes/core.php:1203 From ea00fe12457a32f0dd9047e2bbbbeb10fe887a04 Mon Sep 17 00:00:00 2001 From: Evan Herman Date: Tue, 22 Jul 2025 15:21:08 -0400 Subject: [PATCH 3/3] Update unit test with new X name --- .dev/tests/php/test-template-tags.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.dev/tests/php/test-template-tags.php b/.dev/tests/php/test-template-tags.php index e07e5cbf..a0f7ef15 100644 --- a/.dev/tests/php/test-template-tags.php +++ b/.dev/tests/php/test-template-tags.php @@ -1238,13 +1238,14 @@ public function test_social_icons_facebook() { } /** - * Test the post_meta() returns proper data twitter icon data + * Test the post_meta() returns proper data x icon data */ - public function test_social_icons_twitter() { + public function test_social_icons_x() { - set_theme_mod( 'social_icon_twitter', 'https://www.twitter.com/custom' ); + // Note: X is the new name for Twitter, but the theme_mod name should remain as 'social_icon_twitter' for compatibility. + set_theme_mod( 'social_icon_twitter', 'https://www.x.com/custom' ); - $this->expectOutputRegex( '/