|
@@ 967-975 (lines=9) @@
|
| 964 |
|
* @deprecated since 7.7.0 |
| 965 |
|
* @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
| 966 |
|
*/ |
| 967 |
|
public function initialize_rest_api_registration_connector() { |
| 968 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
| 969 |
|
|
| 970 |
|
if ( ! $this->connection_manager ) { |
| 971 |
|
$this->connection_manager = new Connection_Manager(); |
| 972 |
|
} |
| 973 |
|
|
| 974 |
|
$this->connection_manager->initialize_rest_api_registration_connector(); |
| 975 |
|
} |
| 976 |
|
|
| 977 |
|
/** |
| 978 |
|
* This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1149-1157 (lines=9) @@
|
| 1146 |
|
* @param array $methods A list of registered WordPress XMLRPC methods. |
| 1147 |
|
* @return array Filtered $methods |
| 1148 |
|
*/ |
| 1149 |
|
public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
| 1150 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
| 1151 |
|
|
| 1152 |
|
if ( ! $this->connection_manager ) { |
| 1153 |
|
$this->connection_manager = new Connection_Manager(); |
| 1154 |
|
} |
| 1155 |
|
|
| 1156 |
|
return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
| 1157 |
|
} |
| 1158 |
|
|
| 1159 |
|
/** |
| 1160 |
|
* Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1169-1177 (lines=9) @@
|
| 1166 |
|
* @deprecated since 7.7.0 |
| 1167 |
|
* @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
| 1168 |
|
*/ |
| 1169 |
|
public function alternate_xmlrpc() { |
| 1170 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
| 1171 |
|
|
| 1172 |
|
if ( ! $this->connection_manager ) { |
| 1173 |
|
$this->connection_manager = new Connection_Manager(); |
| 1174 |
|
} |
| 1175 |
|
|
| 1176 |
|
$this->connection_manager->alternate_xmlrpc(); |
| 1177 |
|
} |
| 1178 |
|
|
| 1179 |
|
/** |
| 1180 |
|
* The callback for the JITM ajax requests. |
|
@@ 1247-1255 (lines=9) @@
|
| 1244 |
|
* @deprecated since 7.7.0 |
| 1245 |
|
* @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
| 1246 |
|
*/ |
| 1247 |
|
public function require_jetpack_authentication() { |
| 1248 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
| 1249 |
|
|
| 1250 |
|
if ( ! $this->connection_manager ) { |
| 1251 |
|
$this->connection_manager = new Connection_Manager(); |
| 1252 |
|
} |
| 1253 |
|
|
| 1254 |
|
$this->connection_manager->require_jetpack_authentication(); |
| 1255 |
|
} |
| 1256 |
|
|
| 1257 |
|
/** |
| 1258 |
|
* Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5731-5739 (lines=9) @@
|
| 5728 |
|
* @param array $methods XMLRPC methods. |
| 5729 |
|
* @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
| 5730 |
|
*/ |
| 5731 |
|
public function xmlrpc_methods( $methods ) { |
| 5732 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
| 5733 |
|
|
| 5734 |
|
if ( ! $this->connection_manager ) { |
| 5735 |
|
$this->connection_manager = new Connection_Manager(); |
| 5736 |
|
} |
| 5737 |
|
|
| 5738 |
|
return $this->connection_manager->xmlrpc_methods( $methods ); |
| 5739 |
|
} |
| 5740 |
|
|
| 5741 |
|
/** |
| 5742 |
|
* Register additional public XMLRPC methods. |
|
@@ 5750-5758 (lines=9) @@
|
| 5747 |
|
* @param array $methods Public XMLRPC methods. |
| 5748 |
|
* @return array Public XMLRPC methods, with the getOptions one. |
| 5749 |
|
*/ |
| 5750 |
|
public function public_xmlrpc_methods( $methods ) { |
| 5751 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
| 5752 |
|
|
| 5753 |
|
if ( ! $this->connection_manager ) { |
| 5754 |
|
$this->connection_manager = new Connection_Manager(); |
| 5755 |
|
} |
| 5756 |
|
|
| 5757 |
|
return $this->connection_manager->public_xmlrpc_methods( $methods ); |
| 5758 |
|
} |
| 5759 |
|
|
| 5760 |
|
/** |
| 5761 |
|
* Handles a getOptions XMLRPC method call. |
|
@@ 5769-5777 (lines=9) @@
|
| 5766 |
|
* @param array $args method call arguments. |
| 5767 |
|
* @return array an amended XMLRPC server options array. |
| 5768 |
|
*/ |
| 5769 |
|
public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
| 5770 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
| 5771 |
|
|
| 5772 |
|
if ( ! $this->connection_manager ) { |
| 5773 |
|
$this->connection_manager = new Connection_Manager(); |
| 5774 |
|
} |
| 5775 |
|
|
| 5776 |
|
return $this->connection_manager->jetpack_getOptions( $args ); |
| 5777 |
|
} |
| 5778 |
|
|
| 5779 |
|
/** |
| 5780 |
|
* Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5788-5796 (lines=9) @@
|
| 5785 |
|
* @param array $options Standard Core options. |
| 5786 |
|
* @return array Amended options. |
| 5787 |
|
*/ |
| 5788 |
|
public function xmlrpc_options( $options ) { |
| 5789 |
|
_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
| 5790 |
|
|
| 5791 |
|
if ( ! $this->connection_manager ) { |
| 5792 |
|
$this->connection_manager = new Connection_Manager(); |
| 5793 |
|
} |
| 5794 |
|
|
| 5795 |
|
return $this->connection_manager->xmlrpc_options( $options ); |
| 5796 |
|
} |
| 5797 |
|
|
| 5798 |
|
/** |
| 5799 |
|
* State is passed via cookies from one request to the next, but never to subsequent requests. |