@@ 890-898 (lines=9) @@ | ||
887 | * @deprecated since 7.7.0 |
|
888 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
889 | */ |
|
890 | public function initialize_rest_api_registration_connector() { |
|
891 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
892 | ||
893 | if ( ! $this->connection_manager ) { |
|
894 | $this->connection_manager = new Connection_Manager(); |
|
895 | } |
|
896 | ||
897 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
898 | } |
|
899 | ||
900 | /** |
|
901 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1020-1028 (lines=9) @@ | ||
1017 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1018 | * @return array Filtered $methods |
|
1019 | */ |
|
1020 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1021 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1022 | ||
1023 | if ( ! $this->connection_manager ) { |
|
1024 | $this->connection_manager = new Connection_Manager(); |
|
1025 | } |
|
1026 | ||
1027 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1028 | } |
|
1029 | ||
1030 | /** |
|
1031 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1040-1048 (lines=9) @@ | ||
1037 | * @deprecated since 7.7.0 |
|
1038 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1039 | */ |
|
1040 | public function alternate_xmlrpc() { |
|
1041 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1042 | ||
1043 | if ( ! $this->connection_manager ) { |
|
1044 | $this->connection_manager = new Connection_Manager(); |
|
1045 | } |
|
1046 | ||
1047 | $this->connection_manager->alternate_xmlrpc(); |
|
1048 | } |
|
1049 | ||
1050 | /** |
|
1051 | * The callback for the JITM ajax requests. |
|
@@ 1118-1126 (lines=9) @@ | ||
1115 | * @deprecated since 7.7.0 |
|
1116 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1117 | */ |
|
1118 | public function require_jetpack_authentication() { |
|
1119 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1120 | ||
1121 | if ( ! $this->connection_manager ) { |
|
1122 | $this->connection_manager = new Connection_Manager(); |
|
1123 | } |
|
1124 | ||
1125 | $this->connection_manager->require_jetpack_authentication(); |
|
1126 | } |
|
1127 | ||
1128 | /** |
|
1129 | * Load language files |
|
@@ 5639-5647 (lines=9) @@ | ||
5636 | * @param int $timestamp Timestamp of the request. |
|
5637 | * @param string $nonce Nonce string. |
|
5638 | */ |
|
5639 | public function add_nonce( $timestamp, $nonce ) { |
|
5640 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5641 | ||
5642 | if ( ! $this->connection_manager ) { |
|
5643 | $this->connection_manager = new Connection_Manager(); |
|
5644 | } |
|
5645 | ||
5646 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5647 | } |
|
5648 | ||
5649 | /** |
|
5650 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5659-5667 (lines=9) @@ | ||
5656 | * @param array $methods XMLRPC methods. |
|
5657 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5658 | */ |
|
5659 | public function xmlrpc_methods( $methods ) { |
|
5660 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5661 | ||
5662 | if ( ! $this->connection_manager ) { |
|
5663 | $this->connection_manager = new Connection_Manager(); |
|
5664 | } |
|
5665 | ||
5666 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5667 | } |
|
5668 | ||
5669 | /** |
|
5670 | * Register additional public XMLRPC methods. |
|
@@ 5678-5686 (lines=9) @@ | ||
5675 | * @param array $methods Public XMLRPC methods. |
|
5676 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5677 | */ |
|
5678 | public function public_xmlrpc_methods( $methods ) { |
|
5679 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5680 | ||
5681 | if ( ! $this->connection_manager ) { |
|
5682 | $this->connection_manager = new Connection_Manager(); |
|
5683 | } |
|
5684 | ||
5685 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5686 | } |
|
5687 | ||
5688 | /** |
|
5689 | * Handles a getOptions XMLRPC method call. |
|
@@ 5697-5705 (lines=9) @@ | ||
5694 | * @param array $args method call arguments. |
|
5695 | * @return array an amended XMLRPC server options array. |
|
5696 | */ |
|
5697 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5698 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5699 | ||
5700 | if ( ! $this->connection_manager ) { |
|
5701 | $this->connection_manager = new Connection_Manager(); |
|
5702 | } |
|
5703 | ||
5704 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5705 | } |
|
5706 | ||
5707 | /** |
|
5708 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5716-5724 (lines=9) @@ | ||
5713 | * @param array $options Standard Core options. |
|
5714 | * @return array Amended options. |
|
5715 | */ |
|
5716 | public function xmlrpc_options( $options ) { |
|
5717 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5718 | ||
5719 | if ( ! $this->connection_manager ) { |
|
5720 | $this->connection_manager = new Connection_Manager(); |
|
5721 | } |
|
5722 | ||
5723 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5724 | } |
|
5725 | ||
5726 | /** |
|
5727 | * Cleans nonces that were saved when calling ::add_nonce. |