@@ 883-891 (lines=9) @@ | ||
880 | * @deprecated since 7.7.0 |
|
881 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
882 | */ |
|
883 | public function initialize_rest_api_registration_connector() { |
|
884 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
885 | ||
886 | if ( ! $this->connection_manager ) { |
|
887 | $this->connection_manager = new Connection_Manager(); |
|
888 | } |
|
889 | ||
890 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
891 | } |
|
892 | ||
893 | /** |
|
894 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1009-1017 (lines=9) @@ | ||
1006 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1007 | * @return array Filtered $methods |
|
1008 | */ |
|
1009 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1010 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1011 | ||
1012 | if ( ! $this->connection_manager ) { |
|
1013 | $this->connection_manager = new Connection_Manager(); |
|
1014 | } |
|
1015 | ||
1016 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1017 | } |
|
1018 | ||
1019 | /** |
|
1020 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1029-1037 (lines=9) @@ | ||
1026 | * @deprecated since 7.7.0 |
|
1027 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1028 | */ |
|
1029 | public function alternate_xmlrpc() { |
|
1030 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1031 | ||
1032 | if ( ! $this->connection_manager ) { |
|
1033 | $this->connection_manager = new Connection_Manager(); |
|
1034 | } |
|
1035 | ||
1036 | $this->connection_manager->alternate_xmlrpc(); |
|
1037 | } |
|
1038 | ||
1039 | /** |
|
1040 | * The callback for the JITM ajax requests. |
|
@@ 1137-1145 (lines=9) @@ | ||
1134 | * @deprecated since 7.7.0 |
|
1135 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1136 | */ |
|
1137 | public function require_jetpack_authentication() { |
|
1138 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1139 | ||
1140 | if ( ! $this->connection_manager ) { |
|
1141 | $this->connection_manager = new Connection_Manager(); |
|
1142 | } |
|
1143 | ||
1144 | $this->connection_manager->require_jetpack_authentication(); |
|
1145 | } |
|
1146 | ||
1147 | /** |
|
1148 | * Load language files |
|
@@ 5610-5618 (lines=9) @@ | ||
5607 | * @param int $timestamp Timestamp of the request. |
|
5608 | * @param string $nonce Nonce string. |
|
5609 | */ |
|
5610 | public function add_nonce( $timestamp, $nonce ) { |
|
5611 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5612 | ||
5613 | if ( ! $this->connection_manager ) { |
|
5614 | $this->connection_manager = new Connection_Manager(); |
|
5615 | } |
|
5616 | ||
5617 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5618 | } |
|
5619 | ||
5620 | /** |
|
5621 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5630-5638 (lines=9) @@ | ||
5627 | * @param array $methods XMLRPC methods. |
|
5628 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5629 | */ |
|
5630 | public function xmlrpc_methods( $methods ) { |
|
5631 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5632 | ||
5633 | if ( ! $this->connection_manager ) { |
|
5634 | $this->connection_manager = new Connection_Manager(); |
|
5635 | } |
|
5636 | ||
5637 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5638 | } |
|
5639 | ||
5640 | /** |
|
5641 | * Register additional public XMLRPC methods. |
|
@@ 5649-5657 (lines=9) @@ | ||
5646 | * @param array $methods Public XMLRPC methods. |
|
5647 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5648 | */ |
|
5649 | public function public_xmlrpc_methods( $methods ) { |
|
5650 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5651 | ||
5652 | if ( ! $this->connection_manager ) { |
|
5653 | $this->connection_manager = new Connection_Manager(); |
|
5654 | } |
|
5655 | ||
5656 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5657 | } |
|
5658 | ||
5659 | /** |
|
5660 | * Handles a getOptions XMLRPC method call. |
|
@@ 5668-5676 (lines=9) @@ | ||
5665 | * @param array $args method call arguments. |
|
5666 | * @return array an amended XMLRPC server options array. |
|
5667 | */ |
|
5668 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5669 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5670 | ||
5671 | if ( ! $this->connection_manager ) { |
|
5672 | $this->connection_manager = new Connection_Manager(); |
|
5673 | } |
|
5674 | ||
5675 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5676 | } |
|
5677 | ||
5678 | /** |
|
5679 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5687-5695 (lines=9) @@ | ||
5684 | * @param array $options Standard Core options. |
|
5685 | * @return array Amended options. |
|
5686 | */ |
|
5687 | public function xmlrpc_options( $options ) { |
|
5688 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5689 | ||
5690 | if ( ! $this->connection_manager ) { |
|
5691 | $this->connection_manager = new Connection_Manager(); |
|
5692 | } |
|
5693 | ||
5694 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5695 | } |
|
5696 | ||
5697 | /** |
|
5698 | * Cleans nonces that were saved when calling ::add_nonce. |