Changeset 21735 for trunk/wp-includes/author-template.php
- Timestamp:
- 09/04/2012 04:29:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r20615 r21735 70 70 */ 71 71 function get_the_modified_author() { 72 global $post; 73 if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) { 72 if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) { 74 73 $last_user = get_userdata($last_id); 75 74 return apply_filters('the_modified_author', $last_user->display_name); … … 165 164 */ 166 165 function get_the_author_posts() { 167 global $post; 168 return count_user_posts($post->post_author); 166 return count_user_posts( get_post()->post_author ); 169 167 } 170 168
Note: See TracChangeset
for help on using the changeset viewer.