@@ 864-882 (lines=19) @@ | ||
861 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
862 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
863 | */ |
|
864 | public function setup_xmlrpc_handlers( |
|
865 | $request_params, |
|
866 | $is_active, |
|
867 | $is_signed, |
|
868 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
869 | ) { |
|
870 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
871 | ||
872 | if ( ! $this->connection_manager ) { |
|
873 | $this->connection_manager = new Connection_Manager(); |
|
874 | } |
|
875 | ||
876 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
877 | $request_params, |
|
878 | $is_active, |
|
879 | $is_signed, |
|
880 | $xmlrpc_server |
|
881 | ); |
|
882 | } |
|
883 | ||
884 | /** |
|
885 | * Initialize REST API registration connector. |
|
@@ 5620-5628 (lines=9) @@ | ||
5617 | * @param string $password Password string. |
|
5618 | * @return \WP_User|mixed Authenticated user or error. |
|
5619 | */ |
|
5620 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5621 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5622 | ||
5623 | if ( ! $this->connection_manager ) { |
|
5624 | $this->connection_manager = new Connection_Manager(); |
|
5625 | } |
|
5626 | ||
5627 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5628 | } |
|
5629 | ||
5630 | // Authenticates requests from Jetpack server to WP REST API endpoints. |
|
5631 | // Uses the existing XMLRPC request signing implementation. |