@@ 866-884 (lines=19) @@ | ||
863 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
864 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
865 | */ |
|
866 | public function setup_xmlrpc_handlers( |
|
867 | $request_params, |
|
868 | $is_active, |
|
869 | $is_signed, |
|
870 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
871 | ) { |
|
872 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
873 | ||
874 | if ( ! $this->connection_manager ) { |
|
875 | $this->connection_manager = new Connection_Manager(); |
|
876 | } |
|
877 | ||
878 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
879 | $request_params, |
|
880 | $is_active, |
|
881 | $is_signed, |
|
882 | $xmlrpc_server |
|
883 | ); |
|
884 | } |
|
885 | ||
886 | /** |
|
887 | * Initialize REST API registration connector. |
|
@@ 5477-5485 (lines=9) @@ | ||
5474 | * @param string $password Password string. |
|
5475 | * @return \WP_User|mixed Authenticated user or error. |
|
5476 | */ |
|
5477 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5478 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5479 | ||
5480 | if ( ! $this->connection_manager ) { |
|
5481 | $this->connection_manager = new Connection_Manager(); |
|
5482 | } |
|
5483 | ||
5484 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5485 | } |
|
5486 | ||
5487 | // Authenticates requests from Jetpack server to WP REST API endpoints. |
|
5488 | // Uses the existing XMLRPC request signing implementation. |