WordPress.org

Make WordPress Core

Changeset 11849


Ignore:
Timestamp:
08/20/09 16:21:44 (5 years ago)
Author:
westi
Message:

Pass the to the {get_}the_author_meta filters. Fixes #10661 props scribu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r11838 r11849  
    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 
     
    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 
Note: See TracChangeset for help on using the changeset viewer.