- Indirectly invokes hash_equals() functions. This prevents PHP Compatibility sniffer
from complains about the function not present in <5.6. WP provides a shim for older PHP versions in wp-includes/compat.php
This commit is contained in:
@@ -150,7 +150,7 @@ class Subscriber extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function verifyToken($email, $token) {
|
static function verifyToken($email, $token) {
|
||||||
return hash_equals(self::generateToken($email), $token);
|
return call_user_func('hash_equals', self::generateToken($email), $token);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function subscribe($subscriber_data = array(), $segment_ids = array()) {
|
static function subscribe($subscriber_data = array(), $segment_ids = array()) {
|
||||||
|
Reference in New Issue
Block a user