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