@@ 892-900 (lines=9) @@ | ||
889 | * @deprecated since 7.7.0 |
|
890 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
891 | */ |
|
892 | public function initialize_rest_api_registration_connector() { |
|
893 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
894 | ||
895 | if ( ! $this->connection_manager ) { |
|
896 | $this->connection_manager = new Connection_Manager(); |
|
897 | } |
|
898 | ||
899 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
900 | } |
|
901 | ||
902 | /** |
|
903 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1012-1020 (lines=9) @@ | ||
1009 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1010 | * @return array Filtered $methods |
|
1011 | */ |
|
1012 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1013 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1014 | ||
1015 | if ( ! $this->connection_manager ) { |
|
1016 | $this->connection_manager = new Connection_Manager(); |
|
1017 | } |
|
1018 | ||
1019 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1020 | } |
|
1021 | ||
1022 | /** |
|
1023 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1032-1040 (lines=9) @@ | ||
1029 | * @deprecated since 7.7.0 |
|
1030 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1031 | */ |
|
1032 | public function alternate_xmlrpc() { |
|
1033 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1034 | ||
1035 | if ( ! $this->connection_manager ) { |
|
1036 | $this->connection_manager = new Connection_Manager(); |
|
1037 | } |
|
1038 | ||
1039 | $this->connection_manager->alternate_xmlrpc(); |
|
1040 | } |
|
1041 | ||
1042 | /** |
|
1043 | * The callback for the JITM ajax requests. |
|
@@ 1140-1148 (lines=9) @@ | ||
1137 | * @deprecated since 7.7.0 |
|
1138 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1139 | */ |
|
1140 | public function require_jetpack_authentication() { |
|
1141 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1142 | ||
1143 | if ( ! $this->connection_manager ) { |
|
1144 | $this->connection_manager = new Connection_Manager(); |
|
1145 | } |
|
1146 | ||
1147 | $this->connection_manager->require_jetpack_authentication(); |
|
1148 | } |
|
1149 | ||
1150 | /** |
|
1151 | * Load language files |
|
@@ 5586-5594 (lines=9) @@ | ||
5583 | * @param int $timestamp Timestamp of the request. |
|
5584 | * @param string $nonce Nonce string. |
|
5585 | */ |
|
5586 | public function add_nonce( $timestamp, $nonce ) { |
|
5587 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5588 | ||
5589 | if ( ! $this->connection_manager ) { |
|
5590 | $this->connection_manager = new Connection_Manager(); |
|
5591 | } |
|
5592 | ||
5593 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5594 | } |
|
5595 | ||
5596 | /** |
|
5597 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5606-5614 (lines=9) @@ | ||
5603 | * @param array $methods XMLRPC methods. |
|
5604 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5605 | */ |
|
5606 | public function xmlrpc_methods( $methods ) { |
|
5607 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5608 | ||
5609 | if ( ! $this->connection_manager ) { |
|
5610 | $this->connection_manager = new Connection_Manager(); |
|
5611 | } |
|
5612 | ||
5613 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5614 | } |
|
5615 | ||
5616 | /** |
|
5617 | * Register additional public XMLRPC methods. |
|
@@ 5625-5633 (lines=9) @@ | ||
5622 | * @param array $methods Public XMLRPC methods. |
|
5623 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5624 | */ |
|
5625 | public function public_xmlrpc_methods( $methods ) { |
|
5626 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5627 | ||
5628 | if ( ! $this->connection_manager ) { |
|
5629 | $this->connection_manager = new Connection_Manager(); |
|
5630 | } |
|
5631 | ||
5632 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5633 | } |
|
5634 | ||
5635 | /** |
|
5636 | * Handles a getOptions XMLRPC method call. |
|
@@ 5644-5652 (lines=9) @@ | ||
5641 | * @param array $args method call arguments. |
|
5642 | * @return array an amended XMLRPC server options array. |
|
5643 | */ |
|
5644 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5645 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5646 | ||
5647 | if ( ! $this->connection_manager ) { |
|
5648 | $this->connection_manager = new Connection_Manager(); |
|
5649 | } |
|
5650 | ||
5651 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5652 | } |
|
5653 | ||
5654 | /** |
|
5655 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5663-5671 (lines=9) @@ | ||
5660 | * @param array $options Standard Core options. |
|
5661 | * @return array Amended options. |
|
5662 | */ |
|
5663 | public function xmlrpc_options( $options ) { |
|
5664 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5665 | ||
5666 | if ( ! $this->connection_manager ) { |
|
5667 | $this->connection_manager = new Connection_Manager(); |
|
5668 | } |
|
5669 | ||
5670 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5671 | } |
|
5672 | ||
5673 | /** |
|
5674 | * Cleans nonces that were saved when calling ::add_nonce. |