X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..baca9ce86a38dc54c4574890ee2d352fd81f78b2:/wp-includes/author-template.php?ds=sidebyside 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 ); } /**