|  | @@ 883-891 (lines=9) @@ | 
                                                            
                                    | 880 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 881 |  | 	 * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() | 
                                                            
                                    | 882 |  | 	 */ | 
                                                            
                                    | 883 |  | 	public function initialize_rest_api_registration_connector() { | 
                                                            
                                    | 884 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); | 
                                                            
                                    | 885 |  |  | 
                                                            
                                    | 886 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 887 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 888 |  | 		} | 
                                                            
                                    | 889 |  |  | 
                                                            
                                    | 890 |  | 		$this->connection_manager->initialize_rest_api_registration_connector(); | 
                                                            
                                    | 891 |  | 	} | 
                                                            
                                    | 892 |  |  | 
                                                            
                                    | 893 |  | 	/** | 
                                                            
                                    | 894 |  | 	 * This is ported over from the manage module, which has been deprecated and baked in here. | 
                                                                                
                                |  | @@ 1003-1011 (lines=9) @@ | 
                                                            
                                    | 1000 |  | 	 * @param array $methods A list of registered WordPress XMLRPC methods. | 
                                                            
                                    | 1001 |  | 	 * @return array Filtered $methods | 
                                                            
                                    | 1002 |  | 	 */ | 
                                                            
                                    | 1003 |  | 	public function remove_non_jetpack_xmlrpc_methods( $methods ) { | 
                                                            
                                    | 1004 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); | 
                                                            
                                    | 1005 |  |  | 
                                                            
                                    | 1006 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1007 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1008 |  | 		} | 
                                                            
                                    | 1009 |  |  | 
                                                            
                                    | 1010 |  | 		return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); | 
                                                            
                                    | 1011 |  | 	} | 
                                                            
                                    | 1012 |  |  | 
                                                            
                                    | 1013 |  | 	/** | 
                                                            
                                    | 1014 |  | 	 * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, | 
                                                                                
                                |  | @@ 1023-1031 (lines=9) @@ | 
                                                            
                                    | 1020 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 1021 |  | 	 * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() | 
                                                            
                                    | 1022 |  | 	 */ | 
                                                            
                                    | 1023 |  | 	public function alternate_xmlrpc() { | 
                                                            
                                    | 1024 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); | 
                                                            
                                    | 1025 |  |  | 
                                                            
                                    | 1026 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1027 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1028 |  | 		} | 
                                                            
                                    | 1029 |  |  | 
                                                            
                                    | 1030 |  | 		$this->connection_manager->alternate_xmlrpc(); | 
                                                            
                                    | 1031 |  | 	} | 
                                                            
                                    | 1032 |  |  | 
                                                            
                                    | 1033 |  | 	/** | 
                                                            
                                    | 1034 |  | 	 * The callback for the JITM ajax requests. | 
                                                                                
                                |  | @@ 1131-1139 (lines=9) @@ | 
                                                            
                                    | 1128 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 1129 |  | 	 * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() | 
                                                            
                                    | 1130 |  | 	 */ | 
                                                            
                                    | 1131 |  | 	public function require_jetpack_authentication() { | 
                                                            
                                    | 1132 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); | 
                                                            
                                    | 1133 |  |  | 
                                                            
                                    | 1134 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1135 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1136 |  | 		} | 
                                                            
                                    | 1137 |  |  | 
                                                            
                                    | 1138 |  | 		$this->connection_manager->require_jetpack_authentication(); | 
                                                            
                                    | 1139 |  | 	} | 
                                                            
                                    | 1140 |  |  | 
                                                            
                                    | 1141 |  | 	/** | 
                                                            
                                    | 1142 |  | 	 * Load language files | 
                                                                                
                                |  | @@ 5730-5738 (lines=9) @@ | 
                                                            
                                    | 5727 |  | 	 * @param int    $timestamp Timestamp of the request. | 
                                                            
                                    | 5728 |  | 	 * @param string $nonce     Nonce string. | 
                                                            
                                    | 5729 |  | 	 */ | 
                                                            
                                    | 5730 |  | 	public function add_nonce( $timestamp, $nonce ) { | 
                                                            
                                    | 5731 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); | 
                                                            
                                    | 5732 |  |  | 
                                                            
                                    | 5733 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5734 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5735 |  | 		} | 
                                                            
                                    | 5736 |  |  | 
                                                            
                                    | 5737 |  | 		return $this->connection_manager->add_nonce( $timestamp, $nonce ); | 
                                                            
                                    | 5738 |  | 	} | 
                                                            
                                    | 5739 |  |  | 
                                                            
                                    | 5740 |  | 	/** | 
                                                            
                                    | 5741 |  | 	 * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. | 
                                                                                
                                |  | @@ 5750-5758 (lines=9) @@ | 
                                                            
                                    | 5747 |  | 	 * @param array $methods XMLRPC methods. | 
                                                            
                                    | 5748 |  | 	 * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. | 
                                                            
                                    | 5749 |  | 	 */ | 
                                                            
                                    | 5750 |  | 	public function xmlrpc_methods( $methods ) { | 
                                                            
                                    | 5751 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); | 
                                                            
                                    | 5752 |  |  | 
                                                            
                                    | 5753 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5754 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5755 |  | 		} | 
                                                            
                                    | 5756 |  |  | 
                                                            
                                    | 5757 |  | 		return $this->connection_manager->xmlrpc_methods( $methods ); | 
                                                            
                                    | 5758 |  | 	} | 
                                                            
                                    | 5759 |  |  | 
                                                            
                                    | 5760 |  | 	/** | 
                                                            
                                    | 5761 |  | 	 * Register additional public XMLRPC methods. | 
                                                                                
                                |  | @@ 5769-5777 (lines=9) @@ | 
                                                            
                                    | 5766 |  | 	 * @param array $methods Public XMLRPC methods. | 
                                                            
                                    | 5767 |  | 	 * @return array Public XMLRPC methods, with the getOptions one. | 
                                                            
                                    | 5768 |  | 	 */ | 
                                                            
                                    | 5769 |  | 	public function public_xmlrpc_methods( $methods ) { | 
                                                            
                                    | 5770 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); | 
                                                            
                                    | 5771 |  |  | 
                                                            
                                    | 5772 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5773 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5774 |  | 		} | 
                                                            
                                    | 5775 |  |  | 
                                                            
                                    | 5776 |  | 		return $this->connection_manager->public_xmlrpc_methods( $methods ); | 
                                                            
                                    | 5777 |  | 	} | 
                                                            
                                    | 5778 |  |  | 
                                                            
                                    | 5779 |  | 	/** | 
                                                            
                                    | 5780 |  | 	 * Handles a getOptions XMLRPC method call. | 
                                                                                
                                |  | @@ 5788-5796 (lines=9) @@ | 
                                                            
                                    | 5785 |  | 	 * @param array $args method call arguments. | 
                                                            
                                    | 5786 |  | 	 * @return array an amended XMLRPC server options array. | 
                                                            
                                    | 5787 |  | 	 */ | 
                                                            
                                    | 5788 |  | 	public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid | 
                                                            
                                    | 5789 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); | 
                                                            
                                    | 5790 |  |  | 
                                                            
                                    | 5791 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5792 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5793 |  | 		} | 
                                                            
                                    | 5794 |  |  | 
                                                            
                                    | 5795 |  | 		return $this->connection_manager->jetpack_getOptions( $args ); | 
                                                            
                                    | 5796 |  | 	} | 
                                                            
                                    | 5797 |  |  | 
                                                            
                                    | 5798 |  | 	/** | 
                                                            
                                    | 5799 |  | 	 * Adds Jetpack-specific options to the output of the XMLRPC options method. | 
                                                                                
                                |  | @@ 5807-5815 (lines=9) @@ | 
                                                            
                                    | 5804 |  | 	 * @param array $options Standard Core options. | 
                                                            
                                    | 5805 |  | 	 * @return array Amended options. | 
                                                            
                                    | 5806 |  | 	 */ | 
                                                            
                                    | 5807 |  | 	public function xmlrpc_options( $options ) { | 
                                                            
                                    | 5808 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); | 
                                                            
                                    | 5809 |  |  | 
                                                            
                                    | 5810 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5811 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5812 |  | 		} | 
                                                            
                                    | 5813 |  |  | 
                                                            
                                    | 5814 |  | 		return $this->connection_manager->xmlrpc_options( $options ); | 
                                                            
                                    | 5815 |  | 	} | 
                                                            
                                    | 5816 |  |  | 
                                                            
                                    | 5817 |  | 	/** | 
                                                            
                                    | 5818 |  | 	 * Cleans nonces that were saved when calling ::add_nonce. |