@@ 1029-1037 (lines=9) @@ | ||
1026 | * @deprecated since 7.7.0 |
|
1027 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
1028 | */ |
|
1029 | public function initialize_rest_api_registration_connector() { |
|
1030 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
1031 | ||
1032 | if ( ! $this->connection_manager ) { |
|
1033 | $this->connection_manager = new Connection_Manager(); |
|
1034 | } |
|
1035 | ||
1036 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
1037 | } |
|
1038 | ||
1039 | /** |
|
1040 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1159-1167 (lines=9) @@ | ||
1156 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1157 | * @return array Filtered $methods |
|
1158 | */ |
|
1159 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1160 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1161 | ||
1162 | if ( ! $this->connection_manager ) { |
|
1163 | $this->connection_manager = new Connection_Manager(); |
|
1164 | } |
|
1165 | ||
1166 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1167 | } |
|
1168 | ||
1169 | /** |
|
1170 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1179-1187 (lines=9) @@ | ||
1176 | * @deprecated since 7.7.0 |
|
1177 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1178 | */ |
|
1179 | public function alternate_xmlrpc() { |
|
1180 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1181 | ||
1182 | if ( ! $this->connection_manager ) { |
|
1183 | $this->connection_manager = new Connection_Manager(); |
|
1184 | } |
|
1185 | ||
1186 | $this->connection_manager->alternate_xmlrpc(); |
|
1187 | } |
|
1188 | ||
1189 | /** |
|
1190 | * The callback for the JITM ajax requests. |
|
@@ 1257-1265 (lines=9) @@ | ||
1254 | * @deprecated since 7.7.0 |
|
1255 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1256 | */ |
|
1257 | public function require_jetpack_authentication() { |
|
1258 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1259 | ||
1260 | if ( ! $this->connection_manager ) { |
|
1261 | $this->connection_manager = new Connection_Manager(); |
|
1262 | } |
|
1263 | ||
1264 | $this->connection_manager->require_jetpack_authentication(); |
|
1265 | } |
|
1266 | ||
1267 | /** |
|
1268 | * Load language files |
|
@@ 5778-5786 (lines=9) @@ | ||
5775 | * @param int $timestamp Timestamp of the request. |
|
5776 | * @param string $nonce Nonce string. |
|
5777 | */ |
|
5778 | public function add_nonce( $timestamp, $nonce ) { |
|
5779 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5780 | ||
5781 | if ( ! $this->connection_manager ) { |
|
5782 | $this->connection_manager = new Connection_Manager(); |
|
5783 | } |
|
5784 | ||
5785 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5786 | } |
|
5787 | ||
5788 | /** |
|
5789 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5798-5806 (lines=9) @@ | ||
5795 | * @param array $methods XMLRPC methods. |
|
5796 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5797 | */ |
|
5798 | public function xmlrpc_methods( $methods ) { |
|
5799 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5800 | ||
5801 | if ( ! $this->connection_manager ) { |
|
5802 | $this->connection_manager = new Connection_Manager(); |
|
5803 | } |
|
5804 | ||
5805 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5806 | } |
|
5807 | ||
5808 | /** |
|
5809 | * Register additional public XMLRPC methods. |
|
@@ 5817-5825 (lines=9) @@ | ||
5814 | * @param array $methods Public XMLRPC methods. |
|
5815 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5816 | */ |
|
5817 | public function public_xmlrpc_methods( $methods ) { |
|
5818 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5819 | ||
5820 | if ( ! $this->connection_manager ) { |
|
5821 | $this->connection_manager = new Connection_Manager(); |
|
5822 | } |
|
5823 | ||
5824 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5825 | } |
|
5826 | ||
5827 | /** |
|
5828 | * Handles a getOptions XMLRPC method call. |
|
@@ 5836-5844 (lines=9) @@ | ||
5833 | * @param array $args method call arguments. |
|
5834 | * @return array an amended XMLRPC server options array. |
|
5835 | */ |
|
5836 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5837 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5838 | ||
5839 | if ( ! $this->connection_manager ) { |
|
5840 | $this->connection_manager = new Connection_Manager(); |
|
5841 | } |
|
5842 | ||
5843 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5844 | } |
|
5845 | ||
5846 | /** |
|
5847 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5855-5863 (lines=9) @@ | ||
5852 | * @param array $options Standard Core options. |
|
5853 | * @return array Amended options. |
|
5854 | */ |
|
5855 | public function xmlrpc_options( $options ) { |
|
5856 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5857 | ||
5858 | if ( ! $this->connection_manager ) { |
|
5859 | $this->connection_manager = new Connection_Manager(); |
|
5860 | } |
|
5861 | ||
5862 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5863 | } |
|
5864 | ||
5865 | /** |
|
5866 | * Cleans nonces that were saved when calling ::add_nonce. |