Making WordPress.org

Changeset 14376


Ignore:
Timestamp:
02/05/2025 08:33:24 PM (10 months ago)
Author:
Otto42
Message:

Plugins: Change author display to wporg profiles for link, eliminate nofollow there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/inc/template-tags.php

    r14305 r14376  
    105105    }
    106106
    107     $url    = get_post_meta( $post->ID, 'header_author_uri', true );
    108     $author = strip_tags( get_post_meta( $post->ID, 'header_author', true ) ) ?: get_the_author();
    109     $author = $url ? '<a class="url fn n" rel="nofollow" href="' . esc_url( $url ) . '">' . $author . '</a>' : $author;
     107    $url    = get_author_posts_url( $post->post_author );
     108    $author = strip_tags( get_the_author_meta( 'display_name', $post->post_author ) ) ?: get_the_author();
     109    $author = $url ? '<a class="url fn n" href="' . esc_url( $url ) . '">' . $author . '</a>' : $author;
    110110
    111111    /* translators: post author. */
Note: See TracChangeset for help on using the changeset viewer.