@@ 908-926 (lines=19) @@ | ||
905 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
906 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
907 | */ |
|
908 | public function setup_xmlrpc_handlers( |
|
909 | $request_params, |
|
910 | $is_active, |
|
911 | $is_signed, |
|
912 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
913 | ) { |
|
914 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
915 | ||
916 | if ( ! $this->connection_manager ) { |
|
917 | $this->connection_manager = new Connection_Manager(); |
|
918 | } |
|
919 | ||
920 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
921 | $request_params, |
|
922 | $is_active, |
|
923 | $is_signed, |
|
924 | $xmlrpc_server |
|
925 | ); |
|
926 | } |
|
927 | ||
928 | /** |
|
929 | * Initialize REST API registration connector. |
|
@@ 5524-5532 (lines=9) @@ | ||
5521 | * @param string $password Password string. |
|
5522 | * @return \WP_User|mixed Authenticated user or error. |
|
5523 | */ |
|
5524 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5525 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5526 | ||
5527 | if ( ! $this->connection_manager ) { |
|
5528 | $this->connection_manager = new Connection_Manager(); |
|
5529 | } |
|
5530 | ||
5531 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5532 | } |
|
5533 | ||
5534 | /** |
|
5535 | * Authenticates requests from Jetpack server to WP REST API endpoints. |