@@ 909-927 (lines=19) @@ | ||
906 | * @param Boolean $is_signed Whether the signature check has been successful. |
|
907 | * @param Jetpack_XMLRPC_Server $xmlrpc_server (optional) An instance of the server to use instead of instantiating a new one. |
|
908 | */ |
|
909 | public function setup_xmlrpc_handlers( |
|
910 | $request_params, |
|
911 | $is_active, |
|
912 | $is_signed, |
|
913 | Jetpack_XMLRPC_Server $xmlrpc_server = null |
|
914 | ) { |
|
915 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' ); |
|
916 | ||
917 | if ( ! $this->connection_manager ) { |
|
918 | $this->connection_manager = new Connection_Manager(); |
|
919 | } |
|
920 | ||
921 | return $this->connection_manager->setup_xmlrpc_handlers( |
|
922 | $request_params, |
|
923 | $is_active, |
|
924 | $is_signed, |
|
925 | $xmlrpc_server |
|
926 | ); |
|
927 | } |
|
928 | ||
929 | /** |
|
930 | * Initialize REST API registration connector. |
|
@@ 5522-5530 (lines=9) @@ | ||
5519 | * @param string $password Password string. |
|
5520 | * @return \WP_User|mixed Authenticated user or error. |
|
5521 | */ |
|
5522 | public function authenticate_jetpack( $user, $username, $password ) { |
|
5523 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' ); |
|
5524 | ||
5525 | if ( ! $this->connection_manager ) { |
|
5526 | $this->connection_manager = new Connection_Manager(); |
|
5527 | } |
|
5528 | ||
5529 | return $this->connection_manager->authenticate_jetpack( $user, $username, $password ); |
|
5530 | } |
|
5531 | ||
5532 | /** |
|
5533 | * Authenticates requests from Jetpack server to WP REST API endpoints. |