updated plugin Jetpack Protect
version 1.4.0
This commit is contained in:
@ -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';
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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',
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user