]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/author-template.php
Wordpress 3.5
[autoinstalls/wordpress.git] / wp-includes / author-template.php
index ab2737c563e3b3af267719e2a10e60aa8ab22457..1e65baa1e65b7ca40c09cd5587499a1b37486096 100644 (file)
@@ -69,8 +69,7 @@ function the_author( $deprecated = '', $deprecated_echo = true ) {
  * @return string The author's display name.
  */
 function get_the_modified_author() {
  * @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);
        }
                $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() {
  * @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 );
 }
 
 /**
 }
 
 /**