@@ 885-893 (lines=9) @@ | ||
882 | * @deprecated since 7.7.0 |
|
883 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
884 | */ |
|
885 | public function initialize_rest_api_registration_connector() { |
|
886 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
887 | ||
888 | if ( ! $this->connection_manager ) { |
|
889 | $this->connection_manager = new Connection_Manager(); |
|
890 | } |
|
891 | ||
892 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
893 | } |
|
894 | ||
895 | /** |
|
896 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1011-1019 (lines=9) @@ | ||
1008 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1009 | * @return array Filtered $methods |
|
1010 | */ |
|
1011 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1012 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1013 | ||
1014 | if ( ! $this->connection_manager ) { |
|
1015 | $this->connection_manager = new Connection_Manager(); |
|
1016 | } |
|
1017 | ||
1018 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1019 | } |
|
1020 | ||
1021 | /** |
|
1022 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1031-1039 (lines=9) @@ | ||
1028 | * @deprecated since 7.7.0 |
|
1029 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1030 | */ |
|
1031 | public function alternate_xmlrpc() { |
|
1032 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1033 | ||
1034 | if ( ! $this->connection_manager ) { |
|
1035 | $this->connection_manager = new Connection_Manager(); |
|
1036 | } |
|
1037 | ||
1038 | $this->connection_manager->alternate_xmlrpc(); |
|
1039 | } |
|
1040 | ||
1041 | /** |
|
1042 | * The callback for the JITM ajax requests. |
|
@@ 1139-1147 (lines=9) @@ | ||
1136 | * @deprecated since 7.7.0 |
|
1137 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1138 | */ |
|
1139 | public function require_jetpack_authentication() { |
|
1140 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1141 | ||
1142 | if ( ! $this->connection_manager ) { |
|
1143 | $this->connection_manager = new Connection_Manager(); |
|
1144 | } |
|
1145 | ||
1146 | $this->connection_manager->require_jetpack_authentication(); |
|
1147 | } |
|
1148 | ||
1149 | /** |
|
1150 | * Load language files |
|
@@ 5723-5731 (lines=9) @@ | ||
5720 | * @param int $timestamp Timestamp of the request. |
|
5721 | * @param string $nonce Nonce string. |
|
5722 | */ |
|
5723 | public function add_nonce( $timestamp, $nonce ) { |
|
5724 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5725 | ||
5726 | if ( ! $this->connection_manager ) { |
|
5727 | $this->connection_manager = new Connection_Manager(); |
|
5728 | } |
|
5729 | ||
5730 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5731 | } |
|
5732 | ||
5733 | /** |
|
5734 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5743-5751 (lines=9) @@ | ||
5740 | * @param array $methods XMLRPC methods. |
|
5741 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5742 | */ |
|
5743 | public function xmlrpc_methods( $methods ) { |
|
5744 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5745 | ||
5746 | if ( ! $this->connection_manager ) { |
|
5747 | $this->connection_manager = new Connection_Manager(); |
|
5748 | } |
|
5749 | ||
5750 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5751 | } |
|
5752 | ||
5753 | /** |
|
5754 | * Register additional public XMLRPC methods. |
|
@@ 5762-5770 (lines=9) @@ | ||
5759 | * @param array $methods Public XMLRPC methods. |
|
5760 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5761 | */ |
|
5762 | public function public_xmlrpc_methods( $methods ) { |
|
5763 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5764 | ||
5765 | if ( ! $this->connection_manager ) { |
|
5766 | $this->connection_manager = new Connection_Manager(); |
|
5767 | } |
|
5768 | ||
5769 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5770 | } |
|
5771 | ||
5772 | /** |
|
5773 | * Handles a getOptions XMLRPC method call. |
|
@@ 5781-5789 (lines=9) @@ | ||
5778 | * @param array $args method call arguments. |
|
5779 | * @return array an amended XMLRPC server options array. |
|
5780 | */ |
|
5781 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5782 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5783 | ||
5784 | if ( ! $this->connection_manager ) { |
|
5785 | $this->connection_manager = new Connection_Manager(); |
|
5786 | } |
|
5787 | ||
5788 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5789 | } |
|
5790 | ||
5791 | /** |
|
5792 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5800-5808 (lines=9) @@ | ||
5797 | * @param array $options Standard Core options. |
|
5798 | * @return array Amended options. |
|
5799 | */ |
|
5800 | public function xmlrpc_options( $options ) { |
|
5801 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5802 | ||
5803 | if ( ! $this->connection_manager ) { |
|
5804 | $this->connection_manager = new Connection_Manager(); |
|
5805 | } |
|
5806 | ||
5807 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5808 | } |
|
5809 | ||
5810 | /** |
|
5811 | * Cleans nonces that were saved when calling ::add_nonce. |