Changeset 52568
- Timestamp:
- 01/12/2022 11:15:15 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r51190 r52568 344 344 function get_author_posts_url( $author_id, $author_nicename = '' ) { 345 345 global $wp_rewrite; 346 $auth_ID = (int) $author_id; 347 $link = $wp_rewrite->get_author_permastruct(); 346 347 $author_id = (int) $author_id; 348 $link = $wp_rewrite->get_author_permastruct(); 348 349 349 350 if ( empty( $link ) ) { 350 351 $file = home_url( '/' ); 351 $link = $file . '?author=' . $auth _ID;352 $link = $file . '?author=' . $author_id; 352 353 } else { 353 354 if ( '' === $author_nicename ) {
Note: See TracChangeset
for help on using the changeset viewer.