mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Sanitize meta keynames used as object properties on retrieval. Fixes #14924
git-svn-id: https://develop.svn.wordpress.org/trunk@15692 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2cfd1f678
commit
b5e7866d16
@ -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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user