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