Make WordPress Core

Ticket #31186: 31186.patch

File 31186.patch, 770 bytes (added by alexandruias, 10 years ago)
  • src/wp-includes/author-template.php

     
    7272 *
    7373 * @return string The author's display name.
    7474 */
    75 function get_the_modified_author() {
     75function get_the_modified_author($field = 'display_name') {
    7676        if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) {
    7777                $last_user = get_userdata($last_id);
    7878
     
    8383                 *
    8484                 * @param string $last_user->display_name The author's display name.
    8585                 */
    86                 return apply_filters('the_modified_author', $last_user->display_name);
     86                return apply_filters('the_modified_author', $last_user->$field);
    8787        }
    8888}
    8989