@@ 929-947 (lines=19) @@ | ||
926 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
927 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
928 | */ |
|
929 | public function setup_xmlrpc_handlers( |
|
930 | $request_params, |
|
931 | $is_active, |
|
932 | $is_signed, |
|
933 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
934 | ) { |
|
935 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
936 | ||
937 | if ( ! $this->connection_manager ) { |
|
938 | $this->connection_manager = new Connection_Manager(); |
|
939 | } |
|
940 | ||
941 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
942 | $request_params, |
|
943 | $is_active, |
|
944 | $is_signed, |
|
945 | $xmlrpc_server |
|
946 | ); |
|
947 | } |
|
948 | ||
949 | /** |
|
950 | * Initialize REST API registration connector. |
|
@@ 5594-5602 (lines=9) @@ | ||
5591 | * @param string $password Password string. |
|
5592 | * @return \WP_User|mixed Authenticated user or error. |
|
5593 | */ |
|
5594 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5595 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5596 | ||
5597 | if ( ! $this->connection_manager ) { |
|
5598 | $this->connection_manager = new Connection_Manager(); |
|
5599 | } |
|
5600 | ||
5601 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5602 | } |
|
5603 | ||
5604 | /** |
|
5605 | * Authenticates requests from Jetpack server to WP REST API endpoints. |