@@ 957-965 (lines=9) @@ | ||
954 | * @deprecated since 7.7.0 |
|
955 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
956 | */ |
|
957 | public function initialize_rest_api_registration_connector() { |
|
958 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
959 | ||
960 | if ( ! $this->connection_manager ) { |
|
961 | $this->connection_manager = new Connection_Manager(); |
|
962 | } |
|
963 | ||
964 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
965 | } |
|
966 | ||
967 | /** |
|
968 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1116-1124 (lines=9) @@ | ||
1113 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1114 | * @return array Filtered $methods |
|
1115 | */ |
|
1116 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1117 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1118 | ||
1119 | if ( ! $this->connection_manager ) { |
|
1120 | $this->connection_manager = new Connection_Manager(); |
|
1121 | } |
|
1122 | ||
1123 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1124 | } |
|
1125 | ||
1126 | /** |
|
1127 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1136-1144 (lines=9) @@ | ||
1133 | * @deprecated since 7.7.0 |
|
1134 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1135 | */ |
|
1136 | public function alternate_xmlrpc() { |
|
1137 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1138 | ||
1139 | if ( ! $this->connection_manager ) { |
|
1140 | $this->connection_manager = new Connection_Manager(); |
|
1141 | } |
|
1142 | ||
1143 | $this->connection_manager->alternate_xmlrpc(); |
|
1144 | } |
|
1145 | ||
1146 | /** |
|
1147 | * The callback for the JITM ajax requests. |
|
@@ 1214-1222 (lines=9) @@ | ||
1211 | * @deprecated since 7.7.0 |
|
1212 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1213 | */ |
|
1214 | public function require_jetpack_authentication() { |
|
1215 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1216 | ||
1217 | if ( ! $this->connection_manager ) { |
|
1218 | $this->connection_manager = new Connection_Manager(); |
|
1219 | } |
|
1220 | ||
1221 | $this->connection_manager->require_jetpack_authentication(); |
|
1222 | } |
|
1223 | ||
1224 | /** |
|
1225 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5575-5583 (lines=9) @@ | ||
5572 | * @param array $methods XMLRPC methods. |
|
5573 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5574 | */ |
|
5575 | public function xmlrpc_methods( $methods ) { |
|
5576 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5577 | ||
5578 | if ( ! $this->connection_manager ) { |
|
5579 | $this->connection_manager = new Connection_Manager(); |
|
5580 | } |
|
5581 | ||
5582 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5583 | } |
|
5584 | ||
5585 | /** |
|
5586 | * Register additional public XMLRPC methods. |
|
@@ 5594-5602 (lines=9) @@ | ||
5591 | * @param array $methods Public XMLRPC methods. |
|
5592 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5593 | */ |
|
5594 | public function public_xmlrpc_methods( $methods ) { |
|
5595 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5596 | ||
5597 | if ( ! $this->connection_manager ) { |
|
5598 | $this->connection_manager = new Connection_Manager(); |
|
5599 | } |
|
5600 | ||
5601 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5602 | } |
|
5603 | ||
5604 | /** |
|
5605 | * Handles a getOptions XMLRPC method call. |
|
@@ 5613-5621 (lines=9) @@ | ||
5610 | * @param array $args method call arguments. |
|
5611 | * @return array an amended XMLRPC server options array. |
|
5612 | */ |
|
5613 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5614 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5615 | ||
5616 | if ( ! $this->connection_manager ) { |
|
5617 | $this->connection_manager = new Connection_Manager(); |
|
5618 | } |
|
5619 | ||
5620 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5621 | } |
|
5622 | ||
5623 | /** |
|
5624 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5632-5640 (lines=9) @@ | ||
5629 | * @param array $options Standard Core options. |
|
5630 | * @return array Amended options. |
|
5631 | */ |
|
5632 | public function xmlrpc_options( $options ) { |
|
5633 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5634 | ||
5635 | if ( ! $this->connection_manager ) { |
|
5636 | $this->connection_manager = new Connection_Manager(); |
|
5637 | } |
|
5638 | ||
5639 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5640 | } |
|
5641 | ||
5642 | /** |
|
5643 | * State is passed via cookies from one request to the next, but never to subsequent requests. |