equal
deleted
inserted
replaced
67 * @uses get_userdata() Retrieves the author's DB object. |
67 * @uses get_userdata() Retrieves the author's DB object. |
68 * @uses apply_filters() Calls 'the_modified_author' hook on the author display name. |
68 * @uses apply_filters() Calls 'the_modified_author' hook on the author display name. |
69 * @return string The author's display name. |
69 * @return string The author's display name. |
70 */ |
70 */ |
71 function get_the_modified_author() { |
71 function get_the_modified_author() { |
72 global $post; |
72 if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) { |
73 if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) { |
|
74 $last_user = get_userdata($last_id); |
73 $last_user = get_userdata($last_id); |
75 return apply_filters('the_modified_author', $last_user->display_name); |
74 return apply_filters('the_modified_author', $last_user->display_name); |
76 } |
75 } |
77 } |
76 } |
78 |
77 |
162 * @uses $post The current post in the Loop's DB object. |
161 * @uses $post The current post in the Loop's DB object. |
163 * @uses count_user_posts() |
162 * @uses count_user_posts() |
164 * @return int The number of posts by the author. |
163 * @return int The number of posts by the author. |
165 */ |
164 */ |
166 function get_the_author_posts() { |
165 function get_the_author_posts() { |
167 global $post; |
166 return count_user_posts( get_post()->post_author ); |
168 return count_user_posts($post->post_author); |
|
169 } |
167 } |
170 |
168 |
171 /** |
169 /** |
172 * Display the number of posts by the author of the current post. |
170 * Display the number of posts by the author of the current post. |
173 * |
171 * |