Changeset 14376
- Timestamp:
- 02/05/2025 08:33:24 PM (10 months ago)
- 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 105 105 } 106 106 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; 110 110 111 111 /* translators: post author. */
Note: See TracChangeset
for help on using the changeset viewer.