@@ 897-915 (lines=19) @@ | ||
894 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
895 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
896 | */ |
|
897 | public function setup_xmlrpc_handlers( |
|
898 | $request_params, |
|
899 | $is_active, |
|
900 | $is_signed, |
|
901 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
902 | ) { |
|
903 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
904 | ||
905 | if ( ! $this->connection_manager ) { |
|
906 | $this->connection_manager = new Connection_Manager(); |
|
907 | } |
|
908 | ||
909 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
910 | $request_params, |
|
911 | $is_active, |
|
912 | $is_signed, |
|
913 | $xmlrpc_server |
|
914 | ); |
|
915 | } |
|
916 | ||
917 | /** |
|
918 | * Initialize REST API registration connector. |
|
@@ 5515-5523 (lines=9) @@ | ||
5512 | * @param string $password Password string. |
|
5513 | * @return \WP_User|mixed Authenticated user or error. |
|
5514 | */ |
|
5515 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5516 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5517 | ||
5518 | if ( ! $this->connection_manager ) { |
|
5519 | $this->connection_manager = new Connection_Manager(); |
|
5520 | } |
|
5521 | ||
5522 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5523 | } |
|
5524 | ||
5525 | /** |
|
5526 | * Authenticates requests from Jetpack server to WP REST API endpoints. |