Skip to content

Commit

Permalink
fix: show x.com URLs and icons instead of Twitter in Author blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Dec 12, 2024
1 parent 604ea95 commit 036517b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function( $acc, $profile ) use ( $author_id ) {
$handle = $is_website ? get_post_meta( $author_id, 'cap-website', true ) : get_the_author_meta( $profile, $author_id );

if ( $handle ) {
$url = 'twitter' === $profile ? esc_url( 'https://twitter.com/' . $handle ) : esc_url( $handle );
$url = 'twitter' === $profile ? esc_url( 'https://x.com/' . $handle ) : esc_url( $handle );
$acc[ $profile ] = [ 'url' => $url ];

if ( class_exists( 'Newspack_SVG_Icons' ) ) {
Expand Down

0 comments on commit 036517b

Please sign in to comment.