@@ 935-943 (lines=9) @@ | ||
932 | * @deprecated since 7.7.0 |
|
933 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
934 | */ |
|
935 | public function initialize_rest_api_registration_connector() { |
|
936 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
937 | ||
938 | if ( ! $this->connection_manager ) { |
|
939 | $this->connection_manager = new Connection_Manager(); |
|
940 | } |
|
941 | ||
942 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
943 | } |
|
944 | ||
945 | /** |
|
946 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1061-1069 (lines=9) @@ | ||
1058 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1059 | * @return array Filtered $methods |
|
1060 | */ |
|
1061 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1062 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1063 | ||
1064 | if ( ! $this->connection_manager ) { |
|
1065 | $this->connection_manager = new Connection_Manager(); |
|
1066 | } |
|
1067 | ||
1068 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1069 | } |
|
1070 | ||
1071 | /** |
|
1072 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1081-1089 (lines=9) @@ | ||
1078 | * @deprecated since 7.7.0 |
|
1079 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1080 | */ |
|
1081 | public function alternate_xmlrpc() { |
|
1082 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1083 | ||
1084 | if ( ! $this->connection_manager ) { |
|
1085 | $this->connection_manager = new Connection_Manager(); |
|
1086 | } |
|
1087 | ||
1088 | $this->connection_manager->alternate_xmlrpc(); |
|
1089 | } |
|
1090 | ||
1091 | /** |
|
1092 | * The callback for the JITM ajax requests. |
|
@@ 1159-1167 (lines=9) @@ | ||
1156 | * @deprecated since 7.7.0 |
|
1157 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1158 | */ |
|
1159 | public function require_jetpack_authentication() { |
|
1160 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1161 | ||
1162 | if ( ! $this->connection_manager ) { |
|
1163 | $this->connection_manager = new Connection_Manager(); |
|
1164 | } |
|
1165 | ||
1166 | $this->connection_manager->require_jetpack_authentication(); |
|
1167 | } |
|
1168 | ||
1169 | /** |
|
1170 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5568-5576 (lines=9) @@ | ||
5565 | * @param array $methods XMLRPC methods. |
|
5566 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5567 | */ |
|
5568 | public function xmlrpc_methods( $methods ) { |
|
5569 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5570 | ||
5571 | if ( ! $this->connection_manager ) { |
|
5572 | $this->connection_manager = new Connection_Manager(); |
|
5573 | } |
|
5574 | ||
5575 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5576 | } |
|
5577 | ||
5578 | /** |
|
5579 | * Register additional public XMLRPC methods. |
|
@@ 5587-5595 (lines=9) @@ | ||
5584 | * @param array $methods Public XMLRPC methods. |
|
5585 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5586 | */ |
|
5587 | public function public_xmlrpc_methods( $methods ) { |
|
5588 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5589 | ||
5590 | if ( ! $this->connection_manager ) { |
|
5591 | $this->connection_manager = new Connection_Manager(); |
|
5592 | } |
|
5593 | ||
5594 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5595 | } |
|
5596 | ||
5597 | /** |
|
5598 | * Handles a getOptions XMLRPC method call. |
|
@@ 5606-5614 (lines=9) @@ | ||
5603 | * @param array $args method call arguments. |
|
5604 | * @return array an amended XMLRPC server options array. |
|
5605 | */ |
|
5606 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5607 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5608 | ||
5609 | if ( ! $this->connection_manager ) { |
|
5610 | $this->connection_manager = new Connection_Manager(); |
|
5611 | } |
|
5612 | ||
5613 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5614 | } |
|
5615 | ||
5616 | /** |
|
5617 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5625-5633 (lines=9) @@ | ||
5622 | * @param array $options Standard Core options. |
|
5623 | * @return array Amended options. |
|
5624 | */ |
|
5625 | public function xmlrpc_options( $options ) { |
|
5626 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5627 | ||
5628 | if ( ! $this->connection_manager ) { |
|
5629 | $this->connection_manager = new Connection_Manager(); |
|
5630 | } |
|
5631 | ||
5632 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5633 | } |
|
5634 | ||
5635 | /** |
|
5636 | * State is passed via cookies from one request to the next, but never to subsequent requests. |