@@ 1141-1149 (lines=9) @@ | ||
1138 | * @deprecated since 7.7.0 |
|
1139 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1140 | */ |
|
1141 | public function require_jetpack_authentication() { |
|
1142 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1143 | ||
1144 | if ( ! $this->connection_manager ) { |
|
1145 | $this->connection_manager = new Connection_Manager(); |
|
1146 | } |
|
1147 | ||
1148 | $this->connection_manager->require_jetpack_authentication(); |
|
1149 | } |
|
1150 | ||
1151 | /** |
|
1152 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5608-5616 (lines=9) @@ | ||
5605 | * @param int $timestamp Timestamp of the request. |
|
5606 | * @param string $nonce Nonce string. |
|
5607 | */ |
|
5608 | public function add_nonce( $timestamp, $nonce ) { |
|
5609 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5610 | ||
5611 | if ( ! $this->connection_manager ) { |
|
5612 | $this->connection_manager = new Connection_Manager(); |
|
5613 | } |
|
5614 | ||
5615 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5616 | } |
|
5617 | ||
5618 | /** |
|
5619 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5628-5636 (lines=9) @@ | ||
5625 | * @param array $methods XMLRPC methods. |
|
5626 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5627 | */ |
|
5628 | public function xmlrpc_methods( $methods ) { |
|
5629 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5630 | ||
5631 | if ( ! $this->connection_manager ) { |
|
5632 | $this->connection_manager = new Connection_Manager(); |
|
5633 | } |
|
5634 | ||
5635 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5636 | } |
|
5637 | ||
5638 | /** |
|
5639 | * Register additional public XMLRPC methods. |
|
@@ 5647-5655 (lines=9) @@ | ||
5644 | * @param array $methods Public XMLRPC methods. |
|
5645 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5646 | */ |
|
5647 | public function public_xmlrpc_methods( $methods ) { |
|
5648 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5649 | ||
5650 | if ( ! $this->connection_manager ) { |
|
5651 | $this->connection_manager = new Connection_Manager(); |
|
5652 | } |
|
5653 | ||
5654 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5655 | } |
|
5656 | ||
5657 | /** |
|
5658 | * Handles a getOptions XMLRPC method call. |
|
@@ 5666-5674 (lines=9) @@ | ||
5663 | * @param array $args method call arguments. |
|
5664 | * @return array an amended XMLRPC server options array. |
|
5665 | */ |
|
5666 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5667 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5668 | ||
5669 | if ( ! $this->connection_manager ) { |
|
5670 | $this->connection_manager = new Connection_Manager(); |
|
5671 | } |
|
5672 | ||
5673 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5674 | } |
|
5675 | ||
5676 | /** |
|
5677 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5685-5693 (lines=9) @@ | ||
5682 | * @param array $options Standard Core options. |
|
5683 | * @return array Amended options. |
|
5684 | */ |
|
5685 | public function xmlrpc_options( $options ) { |
|
5686 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5687 | ||
5688 | if ( ! $this->connection_manager ) { |
|
5689 | $this->connection_manager = new Connection_Manager(); |
|
5690 | } |
|
5691 | ||
5692 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5693 | } |
|
5694 | ||
5695 | /** |
|
5696 | * Cleans nonces that were saved when calling ::add_nonce. |
|
@@ 1043-1051 (lines=9) @@ | ||
1040 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1041 | * @return array Filtered $methods |
|
1042 | */ |
|
1043 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1044 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1045 | ||
1046 | if ( ! $this->connection_manager ) { |
|
1047 | $this->connection_manager = new Connection_Manager(); |
|
1048 | } |
|
1049 | ||
1050 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1051 | } |
|
1052 | ||
1053 | /** |
|
1054 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1063-1071 (lines=9) @@ | ||
1060 | * @deprecated since 7.7.0 |
|
1061 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1062 | */ |
|
1063 | public function alternate_xmlrpc() { |
|
1064 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1065 | ||
1066 | if ( ! $this->connection_manager ) { |
|
1067 | $this->connection_manager = new Connection_Manager(); |
|
1068 | } |
|
1069 | ||
1070 | $this->connection_manager->alternate_xmlrpc(); |
|
1071 | } |
|
1072 | ||
1073 | /** |
|
1074 | * The callback for the JITM ajax requests. |
|
@@ 917-925 (lines=9) @@ | ||
914 | * @deprecated since 7.7.0 |
|
915 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
916 | */ |
|
917 | public function initialize_rest_api_registration_connector() { |
|
918 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
919 | ||
920 | if ( ! $this->connection_manager ) { |
|
921 | $this->connection_manager = new Connection_Manager(); |
|
922 | } |
|
923 | ||
924 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
925 | } |
|
926 | ||
927 | /** |
|
928 | * This is ported over from the manage module, which has been deprecated and baked in here. |