Skip to content

Commit

Permalink
refactor(icon-sharing): use X name for labels and sharing link
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Aug 8, 2024
1 parent 6a8ec9e commit 0f81aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/render/class-sharing-icons-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function get_social_profiles( $context = null ) {

'twitter' => array(
'label' => '',
'url' => 'http://twitter.com/share?url=' . esc_url( $current_url ) . '&text=' . esc_attr( $title ),
'url' => 'http://x.com/share?url=' . esc_url( $current_url ) . '&text=' . esc_attr( $title ),
'svg' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><title>' . esc_html__( 'Share on X', 'otter-blocks' ) . '</title><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>',
),

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/blocks/sharing-icons/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const SERVICES = {
icon: 'facebook-f'
},
twitter: {
label: __( 'Twitter', 'otter-blocks' ),
label: __( 'X', 'otter-blocks' ),
icon: 'twitter'
},
linkedin: {
Expand Down

0 comments on commit 0f81aa6

Please sign in to comment.