| @@ -9,10 +9,10 @@ | ||
| 9 | 9 | declare(strict_types=1); |
| 10 | 10 | |
| 11 | 11 | namespace Parsely\Telemetry; |
| 12 | 12 | |
| 13 | -use Parsely\Utils\Utils; | |
| 14 | 13 | use WP_Error; |
| 14 | +use function Parsely\Utils\get_asset_info; | |
| 15 | 15 | use const Parsely\PARSELY_FILE; |
| 16 | 16 | use const Parsely\PARSELY_VERSION; |
| 17 | 17 | |
| 18 | 18 | /** |
| @@ -102,9 +102,9 @@ | ||
| 102 | 102 | // Enqueue the JS file. |
| 103 | 103 | add_action( |
| 104 | 104 | 'admin_enqueue_scripts', |
| 105 | 105 | function (): void { |
| 106 | - $asset_php = Utils::get_asset_info( 'build/telemetry.asset.php' ); | |
| 106 | + $asset_php = get_asset_info( 'build/telemetry.asset.php' ); | |
| 107 | 107 | $built_assets_url = plugin_dir_url( PARSELY_FILE ) . 'build/'; |
| 108 | 108 | |
| 109 | 109 | // The Telemetry script is always enqueued in the admin. |
| 110 | 110 | // If the user has disabled wp-admin telemetry, the global object will not be available. |