|
@@ 5558-5566 (lines=9) @@
|
| 5555 |
|
* @param string $password Password string. |
| 5556 |
|
* @return \WP_User|mixed Authenticated user or error. |
| 5557 |
|
*/ |
| 5558 |
|
public function authenticate_jetpack( $user, $username, $password ) { |
| 5559 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
| 5560 |
|
|
| 5561 |
|
if ( ! $this->connection_manager ) { |
| 5562 |
|
$this->connection_manager = new Connection_Manager(); |
| 5563 |
|
} |
| 5564 |
|
|
| 5565 |
|
return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
| 5566 |
|
} |
| 5567 |
|
|
| 5568 |
|
/** |
| 5569 |
|
* Authenticates requests from Jetpack server to WP REST API endpoints. |
|
@@ 926-944 (lines=19) @@
|
| 923 |
|
* @param Boolean $is_signed Whether the signature check has been successful. |
| 924 |
|
* @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
| 925 |
|
*/ |
| 926 |
|
public function setup_xmlrpc_handlers( |
| 927 |
|
$request_params, |
| 928 |
|
$is_active, |
| 929 |
|
$is_signed, |
| 930 |
|
Jetpack_XMLRPC_Server $xmlrpc_server = null |
| 931 |
|
) { |
| 932 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
| 933 |
|
|
| 934 |
|
if ( ! $this->connection_manager ) { |
| 935 |
|
$this->connection_manager = new Connection_Manager(); |
| 936 |
|
} |
| 937 |
|
|
| 938 |
|
return $this->connection_manager->setup_xmlrpc_handlers( |
| 939 |
|
$request_params, |
| 940 |
|
$is_active, |
| 941 |
|
$is_signed, |
| 942 |
|
$xmlrpc_server |
| 943 |
|
); |
| 944 |
|
} |
| 945 |
|
|
| 946 |
|
/** |
| 947 |
|
* Initialize REST API registration connector. |