| 1 |
<?php |
| 2 |
namespace Elementor\Core\Files\Assets\Json; |
| 3 |
|
| 4 |
use Elementor\Core\Files\Assets\Files_Upload_Handler; |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly. |
| 8 |
} |
| 9 |
|
| 10 |
/** |
| 11 |
* Json Handler |
| 12 |
* |
| 13 |
* @deprecated 3.5.0 Use `Elementor\Core\Files\File_Types\Svg` instead, accessed by calling `Plugin::$instance->uploads_manager->get_file_type_handlers( 'svg' );` |
| 14 |
*/ |
| 15 |
class Json_Handler extends Files_Upload_Handler { |
| 16 |
|
| 17 |
/** |
| 18 |
* @deprecated 3.5.0 |
| 19 |
*/ |
| 20 |
public static function get_name() { |
| 21 |
return 'json-handler'; |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* @deprecated 3.5.0 |
| 26 |
*/ |
| 27 |
public function get_mime_type() { |
| 28 |
return 'application/json'; |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @deprecated 3.5.0 |
| 33 |
*/ |
| 34 |
public function get_file_type() { |
| 35 |
return 'json'; |
| 36 |
} |
| 37 |
} |
| 38 |
|