Ticket #31186: 31186.patch
File 31186.patch, 770 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/author-template.php
72 72 * 73 73 * @return string The author's display name. 74 74 */ 75 function get_the_modified_author( ) {75 function get_the_modified_author($field = 'display_name') { 76 76 if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) { 77 77 $last_user = get_userdata($last_id); 78 78 … … 83 83 * 84 84 * @param string $last_user->display_name The author's display name. 85 85 */ 86 return apply_filters('the_modified_author', $last_user-> display_name);86 return apply_filters('the_modified_author', $last_user->$field); 87 87 } 88 88 } 89 89