@@ 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. |
|
@@ 5541-5549 (lines=9) @@ | ||
5538 | * @param string $password Password string. |
|
5539 | * @return \WP_User|mixed Authenticated user or error. |
|
5540 | */ |
|
5541 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5542 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5543 | ||
5544 | if ( ! $this->connection_manager ) { |
|
5545 | $this->connection_manager = new Connection_Manager(); |
|
5546 | } |
|
5547 | ||
5548 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5549 | } |
|
5550 | ||
5551 | /** |
|
5552 | * Authenticates requests from Jetpack server to WP REST API endpoints. |