diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
index a847fdcc16..0b6cad9a7a 100644
|
a
|
b
|
function the_author( $deprecated = '', $deprecated_echo = true ) {
|
| 87 | 87 | * |
| 88 | 88 | * @since 2.8.0 |
| 89 | 89 | * |
| | 90 | * @param int $post_id Optional. Post ID. Defaults to the current post. |
| 90 | 91 | * @return string|void The author's display name, empty string if unknown. |
| 91 | 92 | */ |
| 92 | | function get_the_modified_author() { |
| 93 | | $last_id = get_post_meta( get_post()->ID, '_edit_last', true ); |
| | 93 | function get_the_modified_author( $post_id = 0 ) { |
| | 94 | $post_id = $post_id ? $post_id : get_post()->ID; |
| | 95 | |
| | 96 | if ( ! $post_id ) { |
| | 97 | return; |
| | 98 | } |
| | 99 | |
| | 100 | $last_id = get_post_meta( $post_id, '_edit_last', true ); |
| 94 | 101 | |
| 95 | 102 | if ( $last_id ) { |
| 96 | 103 | $last_user = get_userdata( $last_id ); |