Make WordPress Core

Changeset 15692


Ignore:
Timestamp:
10/04/2010 02:55:11 AM (14 years ago)
Author:
dd32
Message:

Sanitize meta keynames used as object properties on retrieval. Fixes #14924

File:
1 edited

Legend:

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

    r15620 r15692  
    103103        $authordata = get_userdata( $user_id );
    104104
     105    // Keys used as object vars cannot have dashes.
     106    $field = str_replace('-', '', $field);
    105107    $field = strtolower($field);
    106108    $user_field = "user_$field";
Note: See TracChangeset for help on using the changeset viewer.