← All changes
|
jetpack_vendor/automattic/jetpack-connection/src/class-xmlrpc-connector.php
+6
-2
12.5.2
→
16.3
View file →
| @@ -6,10 +6,14 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace Automattic\Jetpack\Connection; |
| 9 | 9 | |
| 10 | +use IXR_Error; | |
| 11 | + | |
| 10 | 12 | /** |
| 11 | 13 | * Registers the XML-RPC methods for Connections. |
| 14 | + * | |
| 15 | + * @phan-constructor-used-for-side-effects | |
| 12 | 16 | */ |
| 13 | 17 | class XMLRPC_Connector { |
| 14 | 18 | /** |
| 15 | 19 | * The Connection Manager. |
| @@ -68,12 +72,12 @@ | ||
| 68 | 72 | if ( ! $code ) { |
| 69 | 73 | $code = -10520; |
| 70 | 74 | } |
| 71 | 75 | |
| 72 | - if ( ! class_exists( \IXR_Error::class ) ) { | |
| 76 | + if ( ! class_exists( IXR_Error::class ) ) { | |
| 73 | 77 | require_once ABSPATH . WPINC . '/class-IXR.php'; |
| 74 | 78 | } |
| 75 | - return new \IXR_Error( | |
| 79 | + return new IXR_Error( | |
| 76 | 80 | $code, |
| 77 | 81 | sprintf( 'Jetpack: [%s] %s', $data->get_error_code(), $data->get_error_message() ) |
| 78 | 82 | ); |
| 79 | 83 | } |