updated plugin Jetpack Protect version 4.0.0

This commit is contained in:
2025-04-29 21:19:56 +00:00
committed by Gitium
parent eb9181b250
commit ebd40ef928
265 changed files with 11864 additions and 3987 deletions

View File

@ -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 );
}
}
}