@@ 959-967 (lines=9) @@ | ||
956 | * @deprecated since 7.7.0 |
|
957 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
958 | */ |
|
959 | public function initialize_rest_api_registration_connector() { |
|
960 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
961 | ||
962 | if ( ! $this->connection_manager ) { |
|
963 | $this->connection_manager = new Connection_Manager(); |
|
964 | } |
|
965 | ||
966 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
967 | } |
|
968 | ||
969 | /** |
|
970 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1131-1139 (lines=9) @@ | ||
1128 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1129 | * @return array Filtered $methods |
|
1130 | */ |
|
1131 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1132 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1133 | ||
1134 | if ( ! $this->connection_manager ) { |
|
1135 | $this->connection_manager = new Connection_Manager(); |
|
1136 | } |
|
1137 | ||
1138 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1139 | } |
|
1140 | ||
1141 | /** |
|
1142 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1151-1159 (lines=9) @@ | ||
1148 | * @deprecated since 7.7.0 |
|
1149 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1150 | */ |
|
1151 | public function alternate_xmlrpc() { |
|
1152 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1153 | ||
1154 | if ( ! $this->connection_manager ) { |
|
1155 | $this->connection_manager = new Connection_Manager(); |
|
1156 | } |
|
1157 | ||
1158 | $this->connection_manager->alternate_xmlrpc(); |
|
1159 | } |
|
1160 | ||
1161 | /** |
|
1162 | * The callback for the JITM ajax requests. |
|
@@ 1229-1237 (lines=9) @@ | ||
1226 | * @deprecated since 7.7.0 |
|
1227 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1228 | */ |
|
1229 | public function require_jetpack_authentication() { |
|
1230 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1231 | ||
1232 | if ( ! $this->connection_manager ) { |
|
1233 | $this->connection_manager = new Connection_Manager(); |
|
1234 | } |
|
1235 | ||
1236 | $this->connection_manager->require_jetpack_authentication(); |
|
1237 | } |
|
1238 | ||
1239 | /** |
|
1240 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5680-5688 (lines=9) @@ | ||
5677 | * @param array $methods XMLRPC methods. |
|
5678 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5679 | */ |
|
5680 | public function xmlrpc_methods( $methods ) { |
|
5681 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5682 | ||
5683 | if ( ! $this->connection_manager ) { |
|
5684 | $this->connection_manager = new Connection_Manager(); |
|
5685 | } |
|
5686 | ||
5687 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5688 | } |
|
5689 | ||
5690 | /** |
|
5691 | * Register additional public XMLRPC methods. |
|
@@ 5699-5707 (lines=9) @@ | ||
5696 | * @param array $methods Public XMLRPC methods. |
|
5697 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5698 | */ |
|
5699 | public function public_xmlrpc_methods( $methods ) { |
|
5700 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5701 | ||
5702 | if ( ! $this->connection_manager ) { |
|
5703 | $this->connection_manager = new Connection_Manager(); |
|
5704 | } |
|
5705 | ||
5706 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5707 | } |
|
5708 | ||
5709 | /** |
|
5710 | * Handles a getOptions XMLRPC method call. |
|
@@ 5718-5726 (lines=9) @@ | ||
5715 | * @param array $args method call arguments. |
|
5716 | * @return array an amended XMLRPC server options array. |
|
5717 | */ |
|
5718 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5719 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5720 | ||
5721 | if ( ! $this->connection_manager ) { |
|
5722 | $this->connection_manager = new Connection_Manager(); |
|
5723 | } |
|
5724 | ||
5725 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5726 | } |
|
5727 | ||
5728 | /** |
|
5729 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5737-5745 (lines=9) @@ | ||
5734 | * @param array $options Standard Core options. |
|
5735 | * @return array Amended options. |
|
5736 | */ |
|
5737 | public function xmlrpc_options( $options ) { |
|
5738 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5739 | ||
5740 | if ( ! $this->connection_manager ) { |
|
5741 | $this->connection_manager = new Connection_Manager(); |
|
5742 | } |
|
5743 | ||
5744 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5745 | } |
|
5746 | ||
5747 | /** |
|
5748 | * State is passed via cookies from one request to the next, but never to subsequent requests. |