@@ 874-882 (lines=9) @@ | ||
871 | * @deprecated since 7.7.0 |
|
872 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
873 | */ |
|
874 | public function initialize_rest_api_registration_connector() { |
|
875 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
876 | ||
877 | if ( ! $this->connection_manager ) { |
|
878 | $this->connection_manager = new Connection_Manager(); |
|
879 | } |
|
880 | ||
881 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
882 | } |
|
883 | ||
884 | /** |
|
885 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 994-1002 (lines=9) @@ | ||
991 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
992 | * @return array Filtered $methods |
|
993 | */ |
|
994 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
995 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
996 | ||
997 | if ( ! $this->connection_manager ) { |
|
998 | $this->connection_manager = new Connection_Manager(); |
|
999 | } |
|
1000 | ||
1001 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1002 | } |
|
1003 | ||
1004 | /** |
|
1005 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1014-1022 (lines=9) @@ | ||
1011 | * @deprecated since 7.7.0 |
|
1012 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1013 | */ |
|
1014 | public function alternate_xmlrpc() { |
|
1015 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1016 | ||
1017 | if ( ! $this->connection_manager ) { |
|
1018 | $this->connection_manager = new Connection_Manager(); |
|
1019 | } |
|
1020 | ||
1021 | $this->connection_manager->alternate_xmlrpc(); |
|
1022 | } |
|
1023 | ||
1024 | /** |
|
1025 | * The callback for the JITM ajax requests. |
|
@@ 1122-1130 (lines=9) @@ | ||
1119 | * @deprecated since 7.7.0 |
|
1120 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1121 | */ |
|
1122 | public function require_jetpack_authentication() { |
|
1123 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1124 | ||
1125 | if ( ! $this->connection_manager ) { |
|
1126 | $this->connection_manager = new Connection_Manager(); |
|
1127 | } |
|
1128 | ||
1129 | $this->connection_manager->require_jetpack_authentication(); |
|
1130 | } |
|
1131 | ||
1132 | /** |
|
1133 | * Load language files |
|
@@ 5568-5576 (lines=9) @@ | ||
5565 | * @param int $timestamp Timestamp of the request. |
|
5566 | * @param string $nonce Nonce string. |
|
5567 | */ |
|
5568 | public function add_nonce( $timestamp, $nonce ) { |
|
5569 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5570 | ||
5571 | if ( ! $this->connection_manager ) { |
|
5572 | $this->connection_manager = new Connection_Manager(); |
|
5573 | } |
|
5574 | ||
5575 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5576 | } |
|
5577 | ||
5578 | /** |
|
5579 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5588-5596 (lines=9) @@ | ||
5585 | * @param array $methods XMLRPC methods. |
|
5586 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5587 | */ |
|
5588 | public function xmlrpc_methods( $methods ) { |
|
5589 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5590 | ||
5591 | if ( ! $this->connection_manager ) { |
|
5592 | $this->connection_manager = new Connection_Manager(); |
|
5593 | } |
|
5594 | ||
5595 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5596 | } |
|
5597 | ||
5598 | /** |
|
5599 | * Register additional public XMLRPC methods. |
|
@@ 5607-5615 (lines=9) @@ | ||
5604 | * @param array $methods Public XMLRPC methods. |
|
5605 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5606 | */ |
|
5607 | public function public_xmlrpc_methods( $methods ) { |
|
5608 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5609 | ||
5610 | if ( ! $this->connection_manager ) { |
|
5611 | $this->connection_manager = new Connection_Manager(); |
|
5612 | } |
|
5613 | ||
5614 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5615 | } |
|
5616 | ||
5617 | /** |
|
5618 | * Handles a getOptions XMLRPC method call. |
|
@@ 5626-5634 (lines=9) @@ | ||
5623 | * @param array $args method call arguments. |
|
5624 | * @return array an amended XMLRPC server options array. |
|
5625 | */ |
|
5626 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5627 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5628 | ||
5629 | if ( ! $this->connection_manager ) { |
|
5630 | $this->connection_manager = new Connection_Manager(); |
|
5631 | } |
|
5632 | ||
5633 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5634 | } |
|
5635 | ||
5636 | /** |
|
5637 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5645-5653 (lines=9) @@ | ||
5642 | * @param array $options Standard Core options. |
|
5643 | * @return array Amended options. |
|
5644 | */ |
|
5645 | public function xmlrpc_options( $options ) { |
|
5646 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5647 | ||
5648 | if ( ! $this->connection_manager ) { |
|
5649 | $this->connection_manager = new Connection_Manager(); |
|
5650 | } |
|
5651 | ||
5652 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5653 | } |
|
5654 | ||
5655 | /** |
|
5656 | * Cleans nonces that were saved when calling ::add_nonce. |