|
@@ 958-966 (lines=9) @@
|
| 955 |
|
* @deprecated since 7.7.0 |
| 956 |
|
* @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
| 957 |
|
*/ |
| 958 |
|
public function initialize_rest_api_registration_connector() { |
| 959 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
| 960 |
|
|
| 961 |
|
if ( ! $this->connection_manager ) { |
| 962 |
|
$this->connection_manager = new Connection_Manager(); |
| 963 |
|
} |
| 964 |
|
|
| 965 |
|
$this->connection_manager->initialize_rest_api_registration_connector(); |
| 966 |
|
} |
| 967 |
|
|
| 968 |
|
/** |
| 969 |
|
* This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1140-1148 (lines=9) @@
|
| 1137 |
|
* @param array $methods A list of registered WordPress XMLRPC methods. |
| 1138 |
|
* @return array Filtered $methods |
| 1139 |
|
*/ |
| 1140 |
|
public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
| 1141 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
| 1142 |
|
|
| 1143 |
|
if ( ! $this->connection_manager ) { |
| 1144 |
|
$this->connection_manager = new Connection_Manager(); |
| 1145 |
|
} |
| 1146 |
|
|
| 1147 |
|
return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
| 1148 |
|
} |
| 1149 |
|
|
| 1150 |
|
/** |
| 1151 |
|
* Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1160-1168 (lines=9) @@
|
| 1157 |
|
* @deprecated since 7.7.0 |
| 1158 |
|
* @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
| 1159 |
|
*/ |
| 1160 |
|
public function alternate_xmlrpc() { |
| 1161 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
| 1162 |
|
|
| 1163 |
|
if ( ! $this->connection_manager ) { |
| 1164 |
|
$this->connection_manager = new Connection_Manager(); |
| 1165 |
|
} |
| 1166 |
|
|
| 1167 |
|
$this->connection_manager->alternate_xmlrpc(); |
| 1168 |
|
} |
| 1169 |
|
|
| 1170 |
|
/** |
| 1171 |
|
* The callback for the JITM ajax requests. |
|
@@ 1238-1246 (lines=9) @@
|
| 1235 |
|
* @deprecated since 7.7.0 |
| 1236 |
|
* @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
| 1237 |
|
*/ |
| 1238 |
|
public function require_jetpack_authentication() { |
| 1239 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
| 1240 |
|
|
| 1241 |
|
if ( ! $this->connection_manager ) { |
| 1242 |
|
$this->connection_manager = new Connection_Manager(); |
| 1243 |
|
} |
| 1244 |
|
|
| 1245 |
|
$this->connection_manager->require_jetpack_authentication(); |
| 1246 |
|
} |
| 1247 |
|
|
| 1248 |
|
/** |
| 1249 |
|
* Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5586-5594 (lines=9) @@
|
| 5583 |
|
* @param array $methods XMLRPC methods. |
| 5584 |
|
* @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
| 5585 |
|
*/ |
| 5586 |
|
public function xmlrpc_methods( $methods ) { |
| 5587 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
| 5588 |
|
|
| 5589 |
|
if ( ! $this->connection_manager ) { |
| 5590 |
|
$this->connection_manager = new Connection_Manager(); |
| 5591 |
|
} |
| 5592 |
|
|
| 5593 |
|
return $this->connection_manager->xmlrpc_methods( $methods ); |
| 5594 |
|
} |
| 5595 |
|
|
| 5596 |
|
/** |
| 5597 |
|
* Register additional public XMLRPC methods. |
|
@@ 5605-5613 (lines=9) @@
|
| 5602 |
|
* @param array $methods Public XMLRPC methods. |
| 5603 |
|
* @return array Public XMLRPC methods, with the getOptions one. |
| 5604 |
|
*/ |
| 5605 |
|
public function public_xmlrpc_methods( $methods ) { |
| 5606 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
| 5607 |
|
|
| 5608 |
|
if ( ! $this->connection_manager ) { |
| 5609 |
|
$this->connection_manager = new Connection_Manager(); |
| 5610 |
|
} |
| 5611 |
|
|
| 5612 |
|
return $this->connection_manager->public_xmlrpc_methods( $methods ); |
| 5613 |
|
} |
| 5614 |
|
|
| 5615 |
|
/** |
| 5616 |
|
* Handles a getOptions XMLRPC method call. |
|
@@ 5624-5632 (lines=9) @@
|
| 5621 |
|
* @param array $args method call arguments. |
| 5622 |
|
* @return array an amended XMLRPC server options array. |
| 5623 |
|
*/ |
| 5624 |
|
public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
| 5625 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
| 5626 |
|
|
| 5627 |
|
if ( ! $this->connection_manager ) { |
| 5628 |
|
$this->connection_manager = new Connection_Manager(); |
| 5629 |
|
} |
| 5630 |
|
|
| 5631 |
|
return $this->connection_manager->jetpack_getOptions( $args ); |
| 5632 |
|
} |
| 5633 |
|
|
| 5634 |
|
/** |
| 5635 |
|
* Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5643-5651 (lines=9) @@
|
| 5640 |
|
* @param array $options Standard Core options. |
| 5641 |
|
* @return array Amended options. |
| 5642 |
|
*/ |
| 5643 |
|
public function xmlrpc_options( $options ) { |
| 5644 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
| 5645 |
|
|
| 5646 |
|
if ( ! $this->connection_manager ) { |
| 5647 |
|
$this->connection_manager = new Connection_Manager(); |
| 5648 |
|
} |
| 5649 |
|
|
| 5650 |
|
return $this->connection_manager->xmlrpc_options( $options ); |
| 5651 |
|
} |
| 5652 |
|
|
| 5653 |
|
/** |
| 5654 |
|
* State is passed via cookies from one request to the next, but never to subsequent requests. |