@@ 876-884 (lines=9) @@ | ||
873 | * @deprecated since 7.7.0 |
|
874 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
875 | */ |
|
876 | public function initialize_rest_api_registration_connector() { |
|
877 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
878 | ||
879 | if ( ! $this->connection_manager ) { |
|
880 | $this->connection_manager = new Connection_Manager(); |
|
881 | } |
|
882 | ||
883 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
884 | } |
|
885 | ||
886 | /** |
|
887 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1006-1014 (lines=9) @@ | ||
1003 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1004 | * @return array Filtered $methods |
|
1005 | */ |
|
1006 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1007 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1008 | ||
1009 | if ( ! $this->connection_manager ) { |
|
1010 | $this->connection_manager = new Connection_Manager(); |
|
1011 | } |
|
1012 | ||
1013 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1014 | } |
|
1015 | ||
1016 | /** |
|
1017 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1026-1034 (lines=9) @@ | ||
1023 | * @deprecated since 7.7.0 |
|
1024 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1025 | */ |
|
1026 | public function alternate_xmlrpc() { |
|
1027 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1028 | ||
1029 | if ( ! $this->connection_manager ) { |
|
1030 | $this->connection_manager = new Connection_Manager(); |
|
1031 | } |
|
1032 | ||
1033 | $this->connection_manager->alternate_xmlrpc(); |
|
1034 | } |
|
1035 | ||
1036 | /** |
|
1037 | * The callback for the JITM ajax requests. |
|
@@ 1134-1142 (lines=9) @@ | ||
1131 | * @deprecated since 7.7.0 |
|
1132 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1133 | */ |
|
1134 | public function require_jetpack_authentication() { |
|
1135 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1136 | ||
1137 | if ( ! $this->connection_manager ) { |
|
1138 | $this->connection_manager = new Connection_Manager(); |
|
1139 | } |
|
1140 | ||
1141 | $this->connection_manager->require_jetpack_authentication(); |
|
1142 | } |
|
1143 | ||
1144 | /** |
|
1145 | * Load language files |
|
@@ 5721-5729 (lines=9) @@ | ||
5718 | * @param int $timestamp Timestamp of the request. |
|
5719 | * @param string $nonce Nonce string. |
|
5720 | */ |
|
5721 | public function add_nonce( $timestamp, $nonce ) { |
|
5722 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5723 | ||
5724 | if ( ! $this->connection_manager ) { |
|
5725 | $this->connection_manager = new Connection_Manager(); |
|
5726 | } |
|
5727 | ||
5728 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5729 | } |
|
5730 | ||
5731 | /** |
|
5732 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5741-5749 (lines=9) @@ | ||
5738 | * @param array $methods XMLRPC methods. |
|
5739 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5740 | */ |
|
5741 | public function xmlrpc_methods( $methods ) { |
|
5742 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5743 | ||
5744 | if ( ! $this->connection_manager ) { |
|
5745 | $this->connection_manager = new Connection_Manager(); |
|
5746 | } |
|
5747 | ||
5748 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5749 | } |
|
5750 | ||
5751 | /** |
|
5752 | * Register additional public XMLRPC methods. |
|
@@ 5760-5768 (lines=9) @@ | ||
5757 | * @param array $methods Public XMLRPC methods. |
|
5758 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5759 | */ |
|
5760 | public function public_xmlrpc_methods( $methods ) { |
|
5761 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5762 | ||
5763 | if ( ! $this->connection_manager ) { |
|
5764 | $this->connection_manager = new Connection_Manager(); |
|
5765 | } |
|
5766 | ||
5767 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5768 | } |
|
5769 | ||
5770 | /** |
|
5771 | * Handles a getOptions XMLRPC method call. |
|
@@ 5779-5787 (lines=9) @@ | ||
5776 | * @param array $args method call arguments. |
|
5777 | * @return array an amended XMLRPC server options array. |
|
5778 | */ |
|
5779 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5780 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5781 | ||
5782 | if ( ! $this->connection_manager ) { |
|
5783 | $this->connection_manager = new Connection_Manager(); |
|
5784 | } |
|
5785 | ||
5786 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5787 | } |
|
5788 | ||
5789 | /** |
|
5790 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5798-5806 (lines=9) @@ | ||
5795 | * @param array $options Standard Core options. |
|
5796 | * @return array Amended options. |
|
5797 | */ |
|
5798 | public function xmlrpc_options( $options ) { |
|
5799 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5800 | ||
5801 | if ( ! $this->connection_manager ) { |
|
5802 | $this->connection_manager = new Connection_Manager(); |
|
5803 | } |
|
5804 | ||
5805 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5806 | } |
|
5807 | ||
5808 | /** |
|
5809 | * Cleans nonces that were saved when calling ::add_nonce. |