@@ 962-970 (lines=9) @@ | ||
959 | * @deprecated since 7.7.0 |
|
960 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
961 | */ |
|
962 | public function initialize_rest_api_registration_connector() { |
|
963 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
964 | ||
965 | if ( ! $this->connection_manager ) { |
|
966 | $this->connection_manager = new Connection_Manager(); |
|
967 | } |
|
968 | ||
969 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
970 | } |
|
971 | ||
972 | /** |
|
973 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1144-1152 (lines=9) @@ | ||
1141 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1142 | * @return array Filtered $methods |
|
1143 | */ |
|
1144 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1145 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1146 | ||
1147 | if ( ! $this->connection_manager ) { |
|
1148 | $this->connection_manager = new Connection_Manager(); |
|
1149 | } |
|
1150 | ||
1151 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1152 | } |
|
1153 | ||
1154 | /** |
|
1155 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1164-1172 (lines=9) @@ | ||
1161 | * @deprecated since 7.7.0 |
|
1162 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1163 | */ |
|
1164 | public function alternate_xmlrpc() { |
|
1165 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1166 | ||
1167 | if ( ! $this->connection_manager ) { |
|
1168 | $this->connection_manager = new Connection_Manager(); |
|
1169 | } |
|
1170 | ||
1171 | $this->connection_manager->alternate_xmlrpc(); |
|
1172 | } |
|
1173 | ||
1174 | /** |
|
1175 | * The callback for the JITM ajax requests. |
|
@@ 1242-1250 (lines=9) @@ | ||
1239 | * @deprecated since 7.7.0 |
|
1240 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1241 | */ |
|
1242 | public function require_jetpack_authentication() { |
|
1243 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1244 | ||
1245 | if ( ! $this->connection_manager ) { |
|
1246 | $this->connection_manager = new Connection_Manager(); |
|
1247 | } |
|
1248 | ||
1249 | $this->connection_manager->require_jetpack_authentication(); |
|
1250 | } |
|
1251 | ||
1252 | /** |
|
1253 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5677-5685 (lines=9) @@ | ||
5674 | * @param array $methods XMLRPC methods. |
|
5675 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5676 | */ |
|
5677 | public function xmlrpc_methods( $methods ) { |
|
5678 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5679 | ||
5680 | if ( ! $this->connection_manager ) { |
|
5681 | $this->connection_manager = new Connection_Manager(); |
|
5682 | } |
|
5683 | ||
5684 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5685 | } |
|
5686 | ||
5687 | /** |
|
5688 | * Register additional public XMLRPC methods. |
|
@@ 5696-5704 (lines=9) @@ | ||
5693 | * @param array $methods Public XMLRPC methods. |
|
5694 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5695 | */ |
|
5696 | public function public_xmlrpc_methods( $methods ) { |
|
5697 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5698 | ||
5699 | if ( ! $this->connection_manager ) { |
|
5700 | $this->connection_manager = new Connection_Manager(); |
|
5701 | } |
|
5702 | ||
5703 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5704 | } |
|
5705 | ||
5706 | /** |
|
5707 | * Handles a getOptions XMLRPC method call. |
|
@@ 5715-5723 (lines=9) @@ | ||
5712 | * @param array $args method call arguments. |
|
5713 | * @return array an amended XMLRPC server options array. |
|
5714 | */ |
|
5715 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5716 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5717 | ||
5718 | if ( ! $this->connection_manager ) { |
|
5719 | $this->connection_manager = new Connection_Manager(); |
|
5720 | } |
|
5721 | ||
5722 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5723 | } |
|
5724 | ||
5725 | /** |
|
5726 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5734-5742 (lines=9) @@ | ||
5731 | * @param array $options Standard Core options. |
|
5732 | * @return array Amended options. |
|
5733 | */ |
|
5734 | public function xmlrpc_options( $options ) { |
|
5735 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5736 | ||
5737 | if ( ! $this->connection_manager ) { |
|
5738 | $this->connection_manager = new Connection_Manager(); |
|
5739 | } |
|
5740 | ||
5741 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5742 | } |
|
5743 | ||
5744 | /** |
|
5745 | * State is passed via cookies from one request to the next, but never to subsequent requests. |