From da79c2a1003c5c32928bbffb93b6deeeaf8d4dd3 Mon Sep 17 00:00:00 2001 From: dd32 Date: Mon, 4 Oct 2010 02:55:11 +0000 Subject: [PATCH] Sanitize meta keynames used as object properties on retrieval. Fixes #14924 git-svn-id: http://svn.automattic.com/wordpress/trunk@15692 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/author-template.php | 2 ++ 1 file changed, 2 insertions(+) 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";