Skip to:
Content

BuddyPress.org

Ticket #4627: trac4215_avatar_html_pref_v2.patch

File trac4215_avatar_html_pref_v2.patch, 510 bytes (added by magnus78, 8 years ago)

proposed fix

  • bp-core/bp-core-avatars.php

     
    120120        // Compare defaults to passed and extract
    121121        $params = wp_parse_args( $args, $defaults );
    122122        extract( $params, EXTR_SKIP );
     123        $html = filter_var($html, FILTER_VALIDATE_BOOLEAN); // allow "false" and such
    123124
    124125        /** Set item_id ***********************************************************/
    125126