diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index b01a0831a..70a65ca0b 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -102,6 +102,8 @@ function get_the_author_meta($field = '', $user_id = false) { else $authordata = get_userdata( $user_id ); + // Keys used as object vars cannot have dashes. + $field = str_replace('-', '', $field); $field = strtolower($field); $user_field = "user_$field";