@@ 843-861 (lines=19) @@ | ||
840 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
841 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
842 | */ |
|
843 | public function setup_xmlrpc_handlers( |
|
844 | $request_params, |
|
845 | $is_active, |
|
846 | $is_signed, |
|
847 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
848 | ) { |
|
849 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
850 | ||
851 | if ( ! $this->connection_manager ) { |
|
852 | $this->connection_manager = new Connection_Manager(); |
|
853 | } |
|
854 | ||
855 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
856 | $request_params, |
|
857 | $is_active, |
|
858 | $is_signed, |
|
859 | $xmlrpc_server |
|
860 | ); |
|
861 | } |
|
862 | ||
863 | /** |
|
864 | * Initialize REST API registration connector. |
|
@@ 5454-5462 (lines=9) @@ | ||
5451 | * @param string $password Password string. |
|
5452 | * @return \WP_User|mixed Authenticated user or error. |
|
5453 | */ |
|
5454 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5455 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5456 | ||
5457 | if ( ! $this->connection_manager ) { |
|
5458 | $this->connection_manager = new Connection_Manager(); |
|
5459 | } |
|
5460 | ||
5461 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5462 | } |
|
5463 | ||
5464 | // Authenticates requests from Jetpack server to WP REST API endpoints. |
|
5465 | // Uses the existing XMLRPC request signing implementation. |