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