Skip to:
Content

BuddyPress.org

Changeset 10556


Ignore:
Timestamp:
02/08/2016 09:31:52 AM (9 years ago)
Author:
djpaul
Message:

Emails: only support non-string format callable functions for token values.

Prevents calling functions if the token value matches a class or function name.

See #6592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r10514 r10556  
    30803080
    30813081    foreach ( $tokens as $token => $value ) {
    3082         if ( is_callable( $value ) ) {
     3082        if ( ! is_string( $value ) && is_callable( $value ) ) {
    30833083            $value = call_user_func( $value );
    30843084        }
Note: See TracChangeset for help on using the changeset viewer.