Ticket #20285: author_metadata_fix2.patch
File author_metadata_fix2.patch, 561 bytes (added by , 12 years ago) |
---|
-
wp-includes/author-template.php
diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 4b21e44..e9e98bd 100644
a b function get_the_author_meta($field = '', $user_id = false) { 109 109 110 110 if ( 'id' == $field ) 111 111 $value = isset($authordata->ID) ? (int)$authordata->ID : 0; 112 elseif ( isset($authordata->$user_field) )112 elseif ( !empty($authordata->$user_field) ) 113 113 $value = $authordata->$user_field; 114 114 else 115 115 $value = isset($authordata->$field) ? $authordata->$field : '';