@@ 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. |
|
@@ 1142-1150 (lines=9) @@ | ||
1139 | * @deprecated since 7.7.0 |
|
1140 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1141 | */ |
|
1142 | public function require_jetpack_authentication() { |
|
1143 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1144 | ||
1145 | if ( ! $this->connection_manager ) { |
|
1146 | $this->connection_manager = new Connection_Manager(); |
|
1147 | } |
|
1148 | ||
1149 | $this->connection_manager->require_jetpack_authentication(); |
|
1150 | } |
|
1151 | ||
1152 | /** |
|
1153 | * Load language files |
|
@@ 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. |
|
@@ 5689-5697 (lines=9) @@ | ||
5686 | * @param int $timestamp Timestamp of the request. |
|
5687 | * @param string $nonce Nonce string. |
|
5688 | */ |
|
5689 | public function add_nonce( $timestamp, $nonce ) { |
|
5690 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5691 | ||
5692 | if ( ! $this->connection_manager ) { |
|
5693 | $this->connection_manager = new Connection_Manager(); |
|
5694 | } |
|
5695 | ||
5696 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5697 | } |
|
5698 | ||
5699 | /** |
|
5700 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5709-5717 (lines=9) @@ | ||
5706 | * @param array $methods XMLRPC methods. |
|
5707 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5708 | */ |
|
5709 | public function xmlrpc_methods( $methods ) { |
|
5710 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5711 | ||
5712 | if ( ! $this->connection_manager ) { |
|
5713 | $this->connection_manager = new Connection_Manager(); |
|
5714 | } |
|
5715 | ||
5716 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5717 | } |
|
5718 | ||
5719 | /** |
|
5720 | * Register additional public XMLRPC methods. |
|
@@ 5728-5736 (lines=9) @@ | ||
5725 | * @param array $methods Public XMLRPC methods. |
|
5726 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5727 | */ |
|
5728 | public function public_xmlrpc_methods( $methods ) { |
|
5729 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5730 | ||
5731 | if ( ! $this->connection_manager ) { |
|
5732 | $this->connection_manager = new Connection_Manager(); |
|
5733 | } |
|
5734 | ||
5735 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5736 | } |
|
5737 | ||
5738 | /** |
|
5739 | * Handles a getOptions XMLRPC method call. |
|
@@ 5747-5755 (lines=9) @@ | ||
5744 | * @param array $args method call arguments. |
|
5745 | * @return array an amended XMLRPC server options array. |
|
5746 | */ |
|
5747 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5748 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5749 | ||
5750 | if ( ! $this->connection_manager ) { |
|
5751 | $this->connection_manager = new Connection_Manager(); |
|
5752 | } |
|
5753 | ||
5754 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5755 | } |
|
5756 | ||
5757 | /** |
|
5758 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5766-5774 (lines=9) @@ | ||
5763 | * @param array $options Standard Core options. |
|
5764 | * @return array Amended options. |
|
5765 | */ |
|
5766 | public function xmlrpc_options( $options ) { |
|
5767 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5768 | ||
5769 | if ( ! $this->connection_manager ) { |
|
5770 | $this->connection_manager = new Connection_Manager(); |
|
5771 | } |
|
5772 | ||
5773 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5774 | } |
|
5775 | ||
5776 | /** |
|
5777 | * Cleans nonces that were saved when calling ::add_nonce. |