@@ 872-880 (lines=9) @@ | ||
869 | * @deprecated since 7.7.0 |
|
870 | * @see Automattic\Jetpack\Connection\Manager::initialize_rest_api_registration_connector() |
|
871 | */ |
|
872 | public function initialize_rest_api_registration_connector() { |
|
873 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::initialize_rest_api_registration_connector' ); |
|
874 | ||
875 | if ( ! $this->connection_manager ) { |
|
876 | $this->connection_manager = new Connection_Manager(); |
|
877 | } |
|
878 | ||
879 | $this->connection_manager->initialize_rest_api_registration_connector(); |
|
880 | } |
|
881 | ||
882 | /** |
|
883 | * This is ported over from the manage module, which has been deprecated and baked in here. |
|
@@ 1002-1010 (lines=9) @@ | ||
999 | * @param array $methods A list of registered WordPress XMLRPC methods. |
|
1000 | * @return array Filtered $methods |
|
1001 | */ |
|
1002 | public function remove_non_jetpack_xmlrpc_methods( $methods ) { |
|
1003 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::remove_non_jetpack_xmlrpc_methods' ); |
|
1004 | ||
1005 | if ( ! $this->connection_manager ) { |
|
1006 | $this->connection_manager = new Connection_Manager(); |
|
1007 | } |
|
1008 | ||
1009 | return $this->connection_manager->remove_non_jetpack_xmlrpc_methods( $methods ); |
|
1010 | } |
|
1011 | ||
1012 | /** |
|
1013 | * Since a lot of hosts use a hammer approach to "protecting" WordPress sites, |
|
@@ 1022-1030 (lines=9) @@ | ||
1019 | * @deprecated since 7.7.0 |
|
1020 | * @see Automattic\Jetpack\Connection\Manager::alternate_xmlrpc() |
|
1021 | */ |
|
1022 | public function alternate_xmlrpc() { |
|
1023 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::alternate_xmlrpc' ); |
|
1024 | ||
1025 | if ( ! $this->connection_manager ) { |
|
1026 | $this->connection_manager = new Connection_Manager(); |
|
1027 | } |
|
1028 | ||
1029 | $this->connection_manager->alternate_xmlrpc(); |
|
1030 | } |
|
1031 | ||
1032 | /** |
|
1033 | * The callback for the JITM ajax requests. |
|
@@ 1130-1138 (lines=9) @@ | ||
1127 | * @deprecated since 7.7.0 |
|
1128 | * @see Automattic\Jetpack\Connection\Manager::require_jetpack_authentication() |
|
1129 | */ |
|
1130 | public function require_jetpack_authentication() { |
|
1131 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::require_jetpack_authentication' ); |
|
1132 | ||
1133 | if ( ! $this->connection_manager ) { |
|
1134 | $this->connection_manager = new Connection_Manager(); |
|
1135 | } |
|
1136 | ||
1137 | $this->connection_manager->require_jetpack_authentication(); |
|
1138 | } |
|
1139 | ||
1140 | /** |
|
1141 | * Load language files |
|
@@ 5564-5572 (lines=9) @@ | ||
5561 | * @param int $timestamp Timestamp of the request. |
|
5562 | * @param string $nonce Nonce string. |
|
5563 | */ |
|
5564 | public function add_nonce( $timestamp, $nonce ) { |
|
5565 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::add_nonce' ); |
|
5566 | ||
5567 | if ( ! $this->connection_manager ) { |
|
5568 | $this->connection_manager = new Connection_Manager(); |
|
5569 | } |
|
5570 | ||
5571 | return $this->connection_manager->add_nonce( $timestamp, $nonce ); |
|
5572 | } |
|
5573 | ||
5574 | /** |
|
5575 | * In some setups, $HTTP_RAW_POST_DATA can be emptied during some IXR_Server paths since it is passed by reference to various methods. |
|
@@ 5584-5592 (lines=9) @@ | ||
5581 | * @param array $methods XMLRPC methods. |
|
5582 | * @return array XMLRPC methods, with the $HTTP_RAW_POST_DATA one. |
|
5583 | */ |
|
5584 | public function xmlrpc_methods( $methods ) { |
|
5585 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_methods' ); |
|
5586 | ||
5587 | if ( ! $this->connection_manager ) { |
|
5588 | $this->connection_manager = new Connection_Manager(); |
|
5589 | } |
|
5590 | ||
5591 | return $this->connection_manager->xmlrpc_methods( $methods ); |
|
5592 | } |
|
5593 | ||
5594 | /** |
|
5595 | * Register additional public XMLRPC methods. |
|
@@ 5603-5611 (lines=9) @@ | ||
5600 | * @param array $methods Public XMLRPC methods. |
|
5601 | * @return array Public XMLRPC methods, with the getOptions one. |
|
5602 | */ |
|
5603 | public function public_xmlrpc_methods( $methods ) { |
|
5604 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::public_xmlrpc_methods' ); |
|
5605 | ||
5606 | if ( ! $this->connection_manager ) { |
|
5607 | $this->connection_manager = new Connection_Manager(); |
|
5608 | } |
|
5609 | ||
5610 | return $this->connection_manager->public_xmlrpc_methods( $methods ); |
|
5611 | } |
|
5612 | ||
5613 | /** |
|
5614 | * Handles a getOptions XMLRPC method call. |
|
@@ 5622-5630 (lines=9) @@ | ||
5619 | * @param array $args method call arguments. |
|
5620 | * @return array an amended XMLRPC server options array. |
|
5621 | */ |
|
5622 | public function jetpack_getOptions( $args ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
|
5623 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::jetpack_getOptions' ); |
|
5624 | ||
5625 | if ( ! $this->connection_manager ) { |
|
5626 | $this->connection_manager = new Connection_Manager(); |
|
5627 | } |
|
5628 | ||
5629 | return $this->connection_manager->jetpack_getOptions( $args ); |
|
5630 | } |
|
5631 | ||
5632 | /** |
|
5633 | * Adds Jetpack-specific options to the output of the XMLRPC options method. |
|
@@ 5641-5649 (lines=9) @@ | ||
5638 | * @param array $options Standard Core options. |
|
5639 | * @return array Amended options. |
|
5640 | */ |
|
5641 | public function xmlrpc_options( $options ) { |
|
5642 | _deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::xmlrpc_options' ); |
|
5643 | ||
5644 | if ( ! $this->connection_manager ) { |
|
5645 | $this->connection_manager = new Connection_Manager(); |
|
5646 | } |
|
5647 | ||
5648 | return $this->connection_manager->xmlrpc_options( $options ); |
|
5649 | } |
|
5650 | ||
5651 | /** |
|
5652 | * Cleans nonces that were saved when calling ::add_nonce. |