Make WordPress Core

Ticket #10661: author-template.patch

File author-template.patch, 794 bytes (added by scribu, 15 years ago)

Adds the user_id to the_author_meta() and get_the_author_meta()

  • wp-includes/author-template.php

     
    104104        else
    105105                $value = isset($authordata->$field) ? $authordata->$field : '';
    106106
    107         return apply_filters('get_the_author_' . $field, $value);
     107        return apply_filters('get_the_author_' . $field, $value, $user_id);
    108108}
    109109
    110110/**
     
    116116 * @echo string The author's field from the current author's DB object.
    117117 */
    118118function the_author_meta($field = '', $user_id = false) {
    119         echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id));
     119        echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id), $user_id);
    120120}
    121121
    122122/**