@@ 1016-1024 (lines=9) @@ | ||
1013 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1014 | * @return array Filtered $methods |
|
1015 | */ |
|
1016 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1017 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1018 | ||
1019 | if ( ! $this->connection_manager ) { |
|
1020 | $this->connection_manager = new Connection_Manager(); |
|
1021 | } |
|
1022 | ||
1023 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1024 | } |
|
1025 | ||
1026 | /** |
|
1027 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1036-1044 (lines=9) @@ | ||
1033 | * @deprecated since 7.7.0 |
|
1034 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1035 | */ |
|
1036 | public function alternate_xmlrpc() { |
|
1037 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1038 | ||
1039 | if ( ! $this->connection_manager ) { |
|
1040 | $this->connection_manager = new Connection_Manager(); |
|
1041 | } |
|
1042 | ||
1043 | $this->connection_manager->alternate_xmlrpc(); |
|
1044 | } |
|
1045 | ||
1046 | /** |
|
1047 | * The callback for the JITM ajax requests. |
|
@@ 1144-1152 (lines=9) @@ | ||
1141 | * @deprecated since 7.7.0 |
|
1142 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1143 | */ |
|
1144 | public function require_jetpack_authentication() { |
|
1145 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1146 | ||
1147 | if ( ! $this->connection_manager ) { |
|
1148 | $this->connection_manager = new Connection_Manager(); |
|
1149 | } |
|
1150 | ||
1151 | $this->connection_manager->require_jetpack_authentication(); |
|
1152 | } |
|
1153 | ||
1154 | /** |
|
1155 | * Load language files |
|
@@ 5696-5704 (lines=9) @@ | ||
5693 | * @param int $timestamp Timestamp of the request. |
|
5694 | * @param string $nonce Nonce string. |
|
5695 | */ |
|
5696 | public function add_nonce( $timestamp, $nonce ) { |
|
5697 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5698 | ||
5699 | if ( ! $this->connection_manager ) { |
|
5700 | $this->connection_manager = new Connection_Manager(); |
|
5701 | } |
|
5702 | ||
5703 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5704 | } |
|
5705 | ||
5706 | /** |
|
5707 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5716-5724 (lines=9) @@ | ||
5713 | * @param array $methods XMLRPC methods. |
|
5714 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5715 | */ |
|
5716 | public function xmlrpc_methods( $methods ) { |
|
5717 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5718 | ||
5719 | if ( ! $this->connection_manager ) { |
|
5720 | $this->connection_manager = new Connection_Manager(); |
|
5721 | } |
|
5722 | ||
5723 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5724 | } |
|
5725 | ||
5726 | /** |
|
5727 | * Register additional public XMLRPC methods. |
|
@@ 5735-5743 (lines=9) @@ | ||
5732 | * @param array $methods Public XMLRPC methods. |
|
5733 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5734 | */ |
|
5735 | public function public_xmlrpc_methods( $methods ) { |
|
5736 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5737 | ||
5738 | if ( ! $this->connection_manager ) { |
|
5739 | $this->connection_manager = new Connection_Manager(); |
|
5740 | } |
|
5741 | ||
5742 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5743 | } |
|
5744 | ||
5745 | /** |
|
5746 | * Handles a getOptions XMLRPC method call. |
|
@@ 5754-5762 (lines=9) @@ | ||
5751 | * @param array $args method call arguments. |
|
5752 | * @return array an amended XMLRPC server options array. |
|
5753 | */ |
|
5754 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5755 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5756 | ||
5757 | if ( ! $this->connection_manager ) { |
|
5758 | $this->connection_manager = new Connection_Manager(); |
|
5759 | } |
|
5760 | ||
5761 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5762 | } |
|
5763 | ||
5764 | /** |
|
5765 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5773-5781 (lines=9) @@ | ||
5770 | * @param array $options Standard Core options. |
|
5771 | * @return array Amended options. |
|
5772 | */ |
|
5773 | public function xmlrpc_options( $options ) { |
|
5774 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5775 | ||
5776 | if ( ! $this->connection_manager ) { |
|
5777 | $this->connection_manager = new Connection_Manager(); |
|
5778 | } |
|
5779 | ||
5780 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5781 | } |
|
5782 | ||
5783 | /** |
|
5784 | * Cleans nonces that were saved when calling ::add_nonce. |
|
@@ 886-894 (lines=9) @@ | ||
883 | * @deprecated since 7.7.0 |
|
884 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
885 | */ |
|
886 | public function initialize_rest_api_registration_connector() { |
|
887 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
888 | ||
889 | if ( ! $this->connection_manager ) { |
|
890 | $this->connection_manager = new Connection_Manager(); |
|
891 | } |
|
892 | ||
893 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
894 | } |
|
895 | ||
896 | /** |
|
897 | * This is ported over from the manage module, which has been deprecated and baked in here. |