X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/596d585e1dc1eb25bccd3781e37210a4e2504179..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-includes/author-template.php diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index ab2737c5..1e65baa1 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -69,8 +69,7 @@ function the_author( $deprecated = '', $deprecated_echo = true ) { * @return string The author's display name. */ function get_the_modified_author() { - global $post; - if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) { + if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) { $last_user = get_userdata($last_id); return apply_filters('the_modified_author', $last_user->display_name); } @@ -164,8 +163,7 @@ function the_author_link() { * @return int The number of posts by the author. */ function get_the_author_posts() { - global $post; - return count_user_posts($post->post_author); + return count_user_posts( get_post()->post_author ); } /**