@@ 933-951 (lines=19) @@ | ||
930 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
931 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
932 | */ |
|
933 | public function setup_xmlrpc_handlers( |
|
934 | $request_params, |
|
935 | $is_active, |
|
936 | $is_signed, |
|
937 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
938 | ) { |
|
939 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
940 | ||
941 | if ( ! $this->connection_manager ) { |
|
942 | $this->connection_manager = new Connection_Manager(); |
|
943 | } |
|
944 | ||
945 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
946 | $request_params, |
|
947 | $is_active, |
|
948 | $is_signed, |
|
949 | $xmlrpc_server |
|
950 | ); |
|
951 | } |
|
952 | ||
953 | /** |
|
954 | * Initialize REST API registration connector. |
|
@@ 5634-5642 (lines=9) @@ | ||
5631 | * @param string $password Password string. |
|
5632 | * @return \WP_User|mixed Authenticated user or error. |
|
5633 | */ |
|
5634 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5635 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5636 | ||
5637 | if ( ! $this->connection_manager ) { |
|
5638 | $this->connection_manager = new Connection_Manager(); |
|
5639 | } |
|
5640 | ||
5641 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5642 | } |
|
5643 | ||
5644 | /** |
|
5645 | * Authenticates requests from Jetpack server to WP REST API endpoints. |