|  | @@ 966-974 (lines=9) @@ | 
                                                            
                                    | 963 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 964 |  | 	 * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() | 
                                                            
                                    | 965 |  | 	 */ | 
                                                            
                                    | 966 |  | 	public function initialize_rest_api_registration_connector() { | 
                                                            
                                    | 967 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); | 
                                                            
                                    | 968 |  |  | 
                                                            
                                    | 969 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 970 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 971 |  | 		} | 
                                                            
                                    | 972 |  |  | 
                                                            
                                    | 973 |  | 		$this->connection_manager->initialize_rest_api_registration_connector(); | 
                                                            
                                    | 974 |  | 	} | 
                                                            
                                    | 975 |  |  | 
                                                            
                                    | 976 |  | 	/** | 
                                                            
                                    | 977 |  | 	 * This is ported over from the manage module, which has been deprecated and baked in here. | 
                                                                                
                                |  | @@ 1148-1156 (lines=9) @@ | 
                                                            
                                    | 1145 |  | 	 * @param array $methods A list of registered WordPress XMLRPC methods. | 
                                                            
                                    | 1146 |  | 	 * @return array Filtered $methods | 
                                                            
                                    | 1147 |  | 	 */ | 
                                                            
                                    | 1148 |  | 	public function remove_non_jetpack_xmlrpc_methods( $methods ) { | 
                                                            
                                    | 1149 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); | 
                                                            
                                    | 1150 |  |  | 
                                                            
                                    | 1151 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1152 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1153 |  | 		} | 
                                                            
                                    | 1154 |  |  | 
                                                            
                                    | 1155 |  | 		return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); | 
                                                            
                                    | 1156 |  | 	} | 
                                                            
                                    | 1157 |  |  | 
                                                            
                                    | 1158 |  | 	/** | 
                                                            
                                    | 1159 |  | 	 * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, | 
                                                                                
                                |  | @@ 1168-1176 (lines=9) @@ | 
                                                            
                                    | 1165 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 1166 |  | 	 * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() | 
                                                            
                                    | 1167 |  | 	 */ | 
                                                            
                                    | 1168 |  | 	public function alternate_xmlrpc() { | 
                                                            
                                    | 1169 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); | 
                                                            
                                    | 1170 |  |  | 
                                                            
                                    | 1171 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1172 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1173 |  | 		} | 
                                                            
                                    | 1174 |  |  | 
                                                            
                                    | 1175 |  | 		$this->connection_manager->alternate_xmlrpc(); | 
                                                            
                                    | 1176 |  | 	} | 
                                                            
                                    | 1177 |  |  | 
                                                            
                                    | 1178 |  | 	/** | 
                                                            
                                    | 1179 |  | 	 * The callback for the JITM ajax requests. | 
                                                                                
                                |  | @@ 1246-1254 (lines=9) @@ | 
                                                            
                                    | 1243 |  | 	 * @deprecated since 7.7.0 | 
                                                            
                                    | 1244 |  | 	 * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() | 
                                                            
                                    | 1245 |  | 	 */ | 
                                                            
                                    | 1246 |  | 	public function require_jetpack_authentication() { | 
                                                            
                                    | 1247 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); | 
                                                            
                                    | 1248 |  |  | 
                                                            
                                    | 1249 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 1250 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 1251 |  | 		} | 
                                                            
                                    | 1252 |  |  | 
                                                            
                                    | 1253 |  | 		$this->connection_manager->require_jetpack_authentication(); | 
                                                            
                                    | 1254 |  | 	} | 
                                                            
                                    | 1255 |  |  | 
                                                            
                                    | 1256 |  | 	/** | 
                                                            
                                    | 1257 |  | 	 * Register assets for use in various modules and the Jetpack admin page. | 
                                                                                
                                |  | @@ 5671-5679 (lines=9) @@ | 
                                                            
                                    | 5668 |  | 	 * @param array $methods XMLRPC methods. | 
                                                            
                                    | 5669 |  | 	 * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. | 
                                                            
                                    | 5670 |  | 	 */ | 
                                                            
                                    | 5671 |  | 	public function xmlrpc_methods( $methods ) { | 
                                                            
                                    | 5672 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); | 
                                                            
                                    | 5673 |  |  | 
                                                            
                                    | 5674 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5675 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5676 |  | 		} | 
                                                            
                                    | 5677 |  |  | 
                                                            
                                    | 5678 |  | 		return $this->connection_manager->xmlrpc_methods( $methods ); | 
                                                            
                                    | 5679 |  | 	} | 
                                                            
                                    | 5680 |  |  | 
                                                            
                                    | 5681 |  | 	/** | 
                                                            
                                    | 5682 |  | 	 * Register additional public XMLRPC methods. | 
                                                                                
                                |  | @@ 5690-5698 (lines=9) @@ | 
                                                            
                                    | 5687 |  | 	 * @param array $methods Public XMLRPC methods. | 
                                                            
                                    | 5688 |  | 	 * @return array Public XMLRPC methods, with the getOptions one. | 
                                                            
                                    | 5689 |  | 	 */ | 
                                                            
                                    | 5690 |  | 	public function public_xmlrpc_methods( $methods ) { | 
                                                            
                                    | 5691 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); | 
                                                            
                                    | 5692 |  |  | 
                                                            
                                    | 5693 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5694 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5695 |  | 		} | 
                                                            
                                    | 5696 |  |  | 
                                                            
                                    | 5697 |  | 		return $this->connection_manager->public_xmlrpc_methods( $methods ); | 
                                                            
                                    | 5698 |  | 	} | 
                                                            
                                    | 5699 |  |  | 
                                                            
                                    | 5700 |  | 	/** | 
                                                            
                                    | 5701 |  | 	 * Handles a getOptions XMLRPC method call. | 
                                                                                
                                |  | @@ 5709-5717 (lines=9) @@ | 
                                                            
                                    | 5706 |  | 	 * @param array $args method call arguments. | 
                                                            
                                    | 5707 |  | 	 * @return array an amended XMLRPC server options array. | 
                                                            
                                    | 5708 |  | 	 */ | 
                                                            
                                    | 5709 |  | 	public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid | 
                                                            
                                    | 5710 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); | 
                                                            
                                    | 5711 |  |  | 
                                                            
                                    | 5712 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5713 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5714 |  | 		} | 
                                                            
                                    | 5715 |  |  | 
                                                            
                                    | 5716 |  | 		return $this->connection_manager->jetpack_getOptions( $args ); | 
                                                            
                                    | 5717 |  | 	} | 
                                                            
                                    | 5718 |  |  | 
                                                            
                                    | 5719 |  | 	/** | 
                                                            
                                    | 5720 |  | 	 * Adds Jetpack-specific options to the output of the XMLRPC options method. | 
                                                                                
                                |  | @@ 5728-5736 (lines=9) @@ | 
                                                            
                                    | 5725 |  | 	 * @param array $options Standard Core options. | 
                                                            
                                    | 5726 |  | 	 * @return array Amended options. | 
                                                            
                                    | 5727 |  | 	 */ | 
                                                            
                                    | 5728 |  | 	public function xmlrpc_options( $options ) { | 
                                                            
                                    | 5729 |  | 		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); | 
                                                            
                                    | 5730 |  |  | 
                                                            
                                    | 5731 |  | 		if ( ! $this->connection_manager ) { | 
                                                            
                                    | 5732 |  | 			$this->connection_manager = new Connection_Manager(); | 
                                                            
                                    | 5733 |  | 		} | 
                                                            
                                    | 5734 |  |  | 
                                                            
                                    | 5735 |  | 		return $this->connection_manager->xmlrpc_options( $options ); | 
                                                            
                                    | 5736 |  | 	} | 
                                                            
                                    | 5737 |  |  | 
                                                            
                                    | 5738 |  | 	/** | 
                                                            
                                    | 5739 |  | 	 * State is passed via cookies from one request to the next, but never to subsequent requests. |