@@ 960-968 (lines=9) @@ | ||
957 | * @deprecated since 7.7.0 |
|
958 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
959 | */ |
|
960 | public function initialize_rest_api_registration_connector() { |
|
961 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
962 | ||
963 | if ( ! $this->connection_manager ) { |
|
964 | $this->connection_manager = new Connection_Manager(); |
|
965 | } |
|
966 | ||
967 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
968 | } |
|
969 | ||
970 | /** |
|
971 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 5706-5714 (lines=9) @@ | ||
5703 | * @param array $methods XMLRPC methods. |
|
5704 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5705 | */ |
|
5706 | public function xmlrpc_methods( $methods ) { |
|
5707 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5708 | ||
5709 | if ( ! $this->connection_manager ) { |
|
5710 | $this->connection_manager = new Connection_Manager(); |
|
5711 | } |
|
5712 | ||
5713 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5714 | } |
|
5715 | ||
5716 | /** |
|
5717 | * Register additional public XMLRPC methods. |
|
@@ 5725-5733 (lines=9) @@ | ||
5722 | * @param array $methods Public XMLRPC methods. |
|
5723 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5724 | */ |
|
5725 | public function public_xmlrpc_methods( $methods ) { |
|
5726 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5727 | ||
5728 | if ( ! $this->connection_manager ) { |
|
5729 | $this->connection_manager = new Connection_Manager(); |
|
5730 | } |
|
5731 | ||
5732 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5733 | } |
|
5734 | ||
5735 | /** |
|
5736 | * Handles a getOptions XMLRPC method call. |
|
@@ 5744-5752 (lines=9) @@ | ||
5741 | * @param array $args method call arguments. |
|
5742 | * @return array an amended XMLRPC server options array. |
|
5743 | */ |
|
5744 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5745 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5746 | ||
5747 | if ( ! $this->connection_manager ) { |
|
5748 | $this->connection_manager = new Connection_Manager(); |
|
5749 | } |
|
5750 | ||
5751 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5752 | } |
|
5753 | ||
5754 | /** |
|
5755 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5763-5771 (lines=9) @@ | ||
5760 | * @param array $options Standard Core options. |
|
5761 | * @return array Amended options. |
|
5762 | */ |
|
5763 | public function xmlrpc_options( $options ) { |
|
5764 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5765 | ||
5766 | if ( ! $this->connection_manager ) { |
|
5767 | $this->connection_manager = new Connection_Manager(); |
|
5768 | } |
|
5769 | ||
5770 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5771 | } |
|
5772 | ||
5773 | /** |
|
5774 | * State is passed via cookies from one request to the next, but never to subsequent requests. |
|
@@ 1132-1140 (lines=9) @@ | ||
1129 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1130 | * @return array Filtered $methods |
|
1131 | */ |
|
1132 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1133 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1134 | ||
1135 | if ( ! $this->connection_manager ) { |
|
1136 | $this->connection_manager = new Connection_Manager(); |
|
1137 | } |
|
1138 | ||
1139 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1140 | } |
|
1141 | ||
1142 | /** |
|
1143 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1152-1160 (lines=9) @@ | ||
1149 | * @deprecated since 7.7.0 |
|
1150 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1151 | */ |
|
1152 | public function alternate_xmlrpc() { |
|
1153 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1154 | ||
1155 | if ( ! $this->connection_manager ) { |
|
1156 | $this->connection_manager = new Connection_Manager(); |
|
1157 | } |
|
1158 | ||
1159 | $this->connection_manager->alternate_xmlrpc(); |
|
1160 | } |
|
1161 | ||
1162 | /** |
|
1163 | * The callback for the JITM ajax requests. |
|
@@ 1230-1238 (lines=9) @@ | ||
1227 | * @deprecated since 7.7.0 |
|
1228 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1229 | */ |
|
1230 | public function require_jetpack_authentication() { |
|
1231 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1232 | ||
1233 | if ( ! $this->connection_manager ) { |
|
1234 | $this->connection_manager = new Connection_Manager(); |
|
1235 | } |
|
1236 | ||
1237 | $this->connection_manager->require_jetpack_authentication(); |
|
1238 | } |
|
1239 | ||
1240 | /** |
|
1241 | * Register assets for use in various modules and the Jetpack admin page. |