updated plugin Jetpack Protect
version 4.0.0
This commit is contained in:
@ -287,7 +287,7 @@ class Licensing {
|
||||
/**
|
||||
* Load current user's licenses.
|
||||
*
|
||||
* @param bool $unattached_only Only return unattached licenses.
|
||||
* @param bool $unattached_only Only return unattached and not revoked licenses.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@ -304,7 +304,7 @@ class Licensing {
|
||||
$items = array_filter(
|
||||
$items,
|
||||
static function ( $item ) {
|
||||
return $item->attached_at === null;
|
||||
return $item->attached_at === null && $item->revoked_at === null;
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -353,7 +353,7 @@ class Licensing {
|
||||
&& apply_filters( 'jetpack_connection_user_has_license', false, $licenses, $plugin_slug )
|
||||
) {
|
||||
wp_safe_redirect( '/wp-admin/admin.php?page=my-jetpack#/add-license' );
|
||||
exit;
|
||||
exit( 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user