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