@@ 896-904 (lines=9) @@ | ||
893 | * @deprecated since 7.7.0 |
|
894 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
895 | */ |
|
896 | public function initialize_rest_api_registration_connector() { |
|
897 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
898 | ||
899 | if ( ! $this->connection_manager ) { |
|
900 | $this->connection_manager = new Connection_Manager(); |
|
901 | } |
|
902 | ||
903 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
904 | } |
|
905 | ||
906 | /** |
|
907 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1026-1034 (lines=9) @@ | ||
1023 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1024 | * @return array Filtered $methods |
|
1025 | */ |
|
1026 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1027 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1028 | ||
1029 | if ( ! $this->connection_manager ) { |
|
1030 | $this->connection_manager = new Connection_Manager(); |
|
1031 | } |
|
1032 | ||
1033 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1034 | } |
|
1035 | ||
1036 | /** |
|
1037 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1046-1054 (lines=9) @@ | ||
1043 | * @deprecated since 7.7.0 |
|
1044 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1045 | */ |
|
1046 | public function alternate_xmlrpc() { |
|
1047 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1048 | ||
1049 | if ( ! $this->connection_manager ) { |
|
1050 | $this->connection_manager = new Connection_Manager(); |
|
1051 | } |
|
1052 | ||
1053 | $this->connection_manager->alternate_xmlrpc(); |
|
1054 | } |
|
1055 | ||
1056 | /** |
|
1057 | * The callback for the JITM ajax requests. |
|
@@ 1124-1132 (lines=9) @@ | ||
1121 | * @deprecated since 7.7.0 |
|
1122 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1123 | */ |
|
1124 | public function require_jetpack_authentication() { |
|
1125 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1126 | ||
1127 | if ( ! $this->connection_manager ) { |
|
1128 | $this->connection_manager = new Connection_Manager(); |
|
1129 | } |
|
1130 | ||
1131 | $this->connection_manager->require_jetpack_authentication(); |
|
1132 | } |
|
1133 | ||
1134 | /** |
|
1135 | * Register assets for use in various modules and the Jetpack admin page. |
|
@@ 5591-5599 (lines=9) @@ | ||
5588 | * @param int $timestamp Timestamp of the request. |
|
5589 | * @param string $nonce Nonce string. |
|
5590 | */ |
|
5591 | public function add_nonce( $timestamp, $nonce ) { |
|
5592 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5593 | ||
5594 | if ( ! $this->connection_manager ) { |
|
5595 | $this->connection_manager = new Connection_Manager(); |
|
5596 | } |
|
5597 | ||
5598 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5599 | } |
|
5600 | ||
5601 | /** |
|
5602 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5611-5619 (lines=9) @@ | ||
5608 | * @param array $methods XMLRPC methods. |
|
5609 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5610 | */ |
|
5611 | public function xmlrpc_methods( $methods ) { |
|
5612 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5613 | ||
5614 | if ( ! $this->connection_manager ) { |
|
5615 | $this->connection_manager = new Connection_Manager(); |
|
5616 | } |
|
5617 | ||
5618 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5619 | } |
|
5620 | ||
5621 | /** |
|
5622 | * Register additional public XMLRPC methods. |
|
@@ 5630-5638 (lines=9) @@ | ||
5627 | * @param array $methods Public XMLRPC methods. |
|
5628 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5629 | */ |
|
5630 | public function public_xmlrpc_methods( $methods ) { |
|
5631 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5632 | ||
5633 | if ( ! $this->connection_manager ) { |
|
5634 | $this->connection_manager = new Connection_Manager(); |
|
5635 | } |
|
5636 | ||
5637 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5638 | } |
|
5639 | ||
5640 | /** |
|
5641 | * Handles a getOptions XMLRPC method call. |
|
@@ 5649-5657 (lines=9) @@ | ||
5646 | * @param array $args method call arguments. |
|
5647 | * @return array an amended XMLRPC server options array. |
|
5648 | */ |
|
5649 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5650 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5651 | ||
5652 | if ( ! $this->connection_manager ) { |
|
5653 | $this->connection_manager = new Connection_Manager(); |
|
5654 | } |
|
5655 | ||
5656 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5657 | } |
|
5658 | ||
5659 | /** |
|
5660 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5668-5676 (lines=9) @@ | ||
5665 | * @param array $options Standard Core options. |
|
5666 | * @return array Amended options. |
|
5667 | */ |
|
5668 | public function xmlrpc_options( $options ) { |
|
5669 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5670 | ||
5671 | if ( ! $this->connection_manager ) { |
|
5672 | $this->connection_manager = new Connection_Manager(); |
|
5673 | } |
|
5674 | ||
5675 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5676 | } |
|
5677 | ||
5678 | /** |
|
5679 | * Cleans nonces that were saved when calling ::add_nonce. |