| 
                                
                                    @@ 930-938 (lines=9) @@
                                 | 
                            
                                                            
                                    | 927 | 
                                     | 
                                    	 * @deprecated since 7.7.0  | 
                                
                                                            
                                    | 928 | 
                                     | 
                                    	 * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector()  | 
                                
                                                            
                                    | 929 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 930 | 
                                     | 
                                    	public function initialize_rest_api_registration_connector() { | 
                                
                                                            
                                    | 931 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' );  | 
                                
                                                            
                                    | 932 | 
                                     | 
                                     | 
                                
                                                            
                                    | 933 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 934 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 935 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 936 | 
                                     | 
                                     | 
                                
                                                            
                                    | 937 | 
                                     | 
                                    		$this->connection_manager->initialize_rest_api_registration_connector();  | 
                                
                                                            
                                    | 938 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 939 | 
                                     | 
                                     | 
                                
                                                            
                                    | 940 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 941 | 
                                     | 
                                    	 * This is ported over from the manage module, which has been deprecated and baked in here.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 1056-1064 (lines=9) @@
                                 | 
                            
                                                            
                                    | 1053 | 
                                     | 
                                    	 * @param array $methods A list of registered WordPress XMLRPC methods.  | 
                                
                                                            
                                    | 1054 | 
                                     | 
                                    	 * @return array Filtered $methods  | 
                                
                                                            
                                    | 1055 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 1056 | 
                                     | 
                                    	public function remove_non_jetpack_xmlrpc_methods( $methods ) { | 
                                
                                                            
                                    | 1057 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' );  | 
                                
                                                            
                                    | 1058 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1059 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 1060 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 1061 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1062 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1063 | 
                                     | 
                                    		return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods );  | 
                                
                                                            
                                    | 1064 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 1065 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1066 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 1067 | 
                                     | 
                                    	 * Since a lot of hosts use a hammer approach to "protecting" WordPress sites,  | 
                                
                                                                                
                                 | 
                                
                                    @@ 1076-1084 (lines=9) @@
                                 | 
                            
                                                            
                                    | 1073 | 
                                     | 
                                    	 * @deprecated since 7.7.0  | 
                                
                                                            
                                    | 1074 | 
                                     | 
                                    	 * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc()  | 
                                
                                                            
                                    | 1075 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 1076 | 
                                     | 
                                    	public function alternate_xmlrpc() { | 
                                
                                                            
                                    | 1077 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' );  | 
                                
                                                            
                                    | 1078 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1079 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 1080 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 1081 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1082 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1083 | 
                                     | 
                                    		$this->connection_manager->alternate_xmlrpc();  | 
                                
                                                            
                                    | 1084 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 1085 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1086 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 1087 | 
                                     | 
                                    	 * The callback for the JITM ajax requests.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 1154-1162 (lines=9) @@
                                 | 
                            
                                                            
                                    | 1151 | 
                                     | 
                                    	 * @deprecated since 7.7.0  | 
                                
                                                            
                                    | 1152 | 
                                     | 
                                    	 * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication()  | 
                                
                                                            
                                    | 1153 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 1154 | 
                                     | 
                                    	public function require_jetpack_authentication() { | 
                                
                                                            
                                    | 1155 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' );  | 
                                
                                                            
                                    | 1156 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1157 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 1158 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 1159 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1160 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1161 | 
                                     | 
                                    		$this->connection_manager->require_jetpack_authentication();  | 
                                
                                                            
                                    | 1162 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 1163 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1164 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 1165 | 
                                     | 
                                    	 * Register assets for use in various modules and the Jetpack admin page.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 5563-5571 (lines=9) @@
                                 | 
                            
                                                            
                                    | 5560 | 
                                     | 
                                    	 * @param array $methods XMLRPC methods.  | 
                                
                                                            
                                    | 5561 | 
                                     | 
                                    	 * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one.  | 
                                
                                                            
                                    | 5562 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 5563 | 
                                     | 
                                    	public function xmlrpc_methods( $methods ) { | 
                                
                                                            
                                    | 5564 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' );  | 
                                
                                                            
                                    | 5565 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5566 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 5567 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 5568 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5569 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5570 | 
                                     | 
                                    		return $this->connection_manager->xmlrpc_methods( $methods );  | 
                                
                                                            
                                    | 5571 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5572 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5573 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 5574 | 
                                     | 
                                    	 * Register additional public XMLRPC methods.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 5582-5590 (lines=9) @@
                                 | 
                            
                                                            
                                    | 5579 | 
                                     | 
                                    	 * @param array $methods Public XMLRPC methods.  | 
                                
                                                            
                                    | 5580 | 
                                     | 
                                    	 * @return array Public XMLRPC methods, with the getOptions one.  | 
                                
                                                            
                                    | 5581 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 5582 | 
                                     | 
                                    	public function public_xmlrpc_methods( $methods ) { | 
                                
                                                            
                                    | 5583 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' );  | 
                                
                                                            
                                    | 5584 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5585 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 5586 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 5587 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5588 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5589 | 
                                     | 
                                    		return $this->connection_manager->public_xmlrpc_methods( $methods );  | 
                                
                                                            
                                    | 5590 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5591 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5592 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 5593 | 
                                     | 
                                    	 * Handles a getOptions XMLRPC method call.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 5601-5609 (lines=9) @@
                                 | 
                            
                                                            
                                    | 5598 | 
                                     | 
                                    	 * @param array $args method call arguments.  | 
                                
                                                            
                                    | 5599 | 
                                     | 
                                    	 * @return array an amended XMLRPC server options array.  | 
                                
                                                            
                                    | 5600 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 5601 | 
                                     | 
                                    	public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid | 
                                
                                                            
                                    | 5602 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' );  | 
                                
                                                            
                                    | 5603 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5604 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 5605 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 5606 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5607 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5608 | 
                                     | 
                                    		return $this->connection_manager->jetpack_getOptions( $args );  | 
                                
                                                            
                                    | 5609 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5610 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5611 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 5612 | 
                                     | 
                                    	 * Adds Jetpack-specific options to the output of the XMLRPC options method.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 5620-5628 (lines=9) @@
                                 | 
                            
                                                            
                                    | 5617 | 
                                     | 
                                    	 * @param array $options Standard Core options.  | 
                                
                                                            
                                    | 5618 | 
                                     | 
                                    	 * @return array Amended options.  | 
                                
                                                            
                                    | 5619 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 5620 | 
                                     | 
                                    	public function xmlrpc_options( $options ) { | 
                                
                                                            
                                    | 5621 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' );  | 
                                
                                                            
                                    | 5622 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5623 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 5624 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 5625 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5626 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5627 | 
                                     | 
                                    		return $this->connection_manager->xmlrpc_options( $options );  | 
                                
                                                            
                                    | 5628 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5629 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5630 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 5631 | 
                                     | 
                                    	 * State is passed via cookies from one request to the next, but never to subsequent requests.  |