updated plugin Jetpack Protect version 1.4.0

This commit is contained in:
2023-06-05 11:21:22 +00:00
committed by Gitium
parent b7bbe6d733
commit 63d1d30fa8
115 changed files with 3634 additions and 726 deletions

View File

@ -12,7 +12,7 @@ namespace Automattic\Jetpack\Connection;
*/
class Package_Version {
const PACKAGE_VERSION = '1.51.1';
const PACKAGE_VERSION = '1.51.7';
const PACKAGE_SLUG = 'connection';

View File

@ -487,21 +487,16 @@ class Tokens {
*
* @todo Refactor to properly load the XMLRPC client independently.
*
* @param int $user_id The user identifier.
* @param bool|null $deprecated Deprecated.
* @param int $user_id The user identifier.
*
* @return bool Whether the disconnection of the user was successful.
*/
public function disconnect_user( $user_id, $deprecated = null ) {
public function disconnect_user( $user_id ) {
$tokens = $this->get_user_tokens();
if ( ! $tokens ) {
return false;
}
if ( null !== $deprecated ) {
_deprecated_argument( __METHOD__, '1.46.0', 'Parameter $can_overwrite_primary_user is deprecated' );
}
if ( ! isset( $tokens[ $user_id ] ) ) {
return false;
}

View File

@ -125,7 +125,6 @@ class Tracking {
'dependencies' => array( 'jp-tracks' ),
'enqueue' => $enqueue,
'in_footer' => true,
'nonmin_path' => 'js/tracks-callables.js',
)
);
}
@ -142,7 +141,6 @@ class Tracking {
'dependencies' => array( 'jquery' ),
'enqueue' => true,
'in_footer' => true,
'nonmin_path' => 'js/tracks-ajax.js',
)
);

View File

@ -42,9 +42,9 @@ class Authorize_Redirect {
$domains[] = 'jetpack.wordpress.com';
$domains[] = 'wordpress.com';
// Calypso envs.
$domains[] = 'http://calypso.localhost:3000/';
$domains[] = 'https://wpcalypso.wordpress.com/';
$domains[] = 'https://horizon.wordpress.com/';
$domains[] = 'calypso.localhost';
$domains[] = 'wpcalypso.wordpress.com';
$domains[] = 'horizon.wordpress.com';
return array_unique( $domains );
}
);