| @@ -12,31 +12,23 @@ | ||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Files Upload Handler |
| 15 | 15 | * |
| 16 | - * @deprecated 3.5.0 Use `Elementor\Core\Files\Uploads_Manager` class instead. | |
| 16 | + * Deprecated, use Elementor\Core\Files\Uploads_Manager instead. | |
| 17 | + * | |
| 18 | + * @deprecated 3.5.0 | |
| 17 | 19 | */ |
| 18 | 20 | abstract class Files_Upload_Handler { |
| 19 | - | |
| 20 | - /** | |
| 21 | - * @deprecated 3.5.0 | |
| 22 | - */ | |
| 23 | 21 | const OPTION_KEY = 'elementor_unfiltered_files_upload'; |
| 24 | 22 | |
| 25 | - /** | |
| 26 | - * @deprecated 3.5.0 | |
| 27 | - */ | |
| 28 | 23 | abstract public function get_mime_type(); |
| 29 | 24 | |
| 30 | - /** | |
| 31 | - * @deprecated 3.5.0 | |
| 32 | - */ | |
| 33 | 25 | abstract public function get_file_type(); |
| 34 | 26 | |
| 35 | 27 | /** |
| 36 | 28 | * Is Elementor Media Upload |
| 37 | 29 | * |
| 38 | - * @deprecated 3.5.0 Use `Elementor\Plugin::$instance->uploads_manager->are_unfiltered_uploads_enabled()` instead. | |
| 30 | + * @deprecated 3.5.0 | |
| 39 | 31 | * |
| 40 | 32 | * @return bool |
| 41 | 33 | */ |
| 42 | 34 | private function is_elementor_media_upload() { |
| @@ -47,9 +39,9 @@ | ||
| 47 | 39 | |
| 48 | 40 | /** |
| 49 | 41 | * Is Enabled |
| 50 | 42 | * |
| 51 | - * @deprecated 3.5.0 Use `Elementor\Plugin::$instance->uploads_manager->are_unfiltered_uploads_enabled()` instead. | |
| 43 | + * @deprecated 3.5.0 | |
| 52 | 44 | * |
| 53 | 45 | * @return bool |
| 54 | 46 | */ |
| 55 | 47 | final public static function is_enabled() { |
| @@ -57,11 +49,8 @@ | ||
| 57 | 49 | |
| 58 | 50 | return Plugin::$instance->uploads_manager->are_unfiltered_uploads_enabled(); |
| 59 | 51 | } |
| 60 | 52 | |
| 61 | - /** | |
| 62 | - * @deprecated 3.5.0 Use `Elementor\Plugin::$instance->uploads_manager->are_unfiltered_uploads_enabled()` instead. | |
| 63 | - */ | |
| 64 | 53 | final public function support_unfiltered_files_upload( $existing_mimes ) { |
| 65 | 54 | Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.5.0', 'Elementor\Plugin::$instance->uploads_manager->support_unfiltered_file_uploads()' ); |
| 66 | 55 | |
| 67 | 56 | return Plugin::$instance->uploads_manager->support_unfiltered_elementor_file_uploads( $existing_mimes ); |
| @@ -67,11 +56,11 @@ | ||
| 67 | 56 | return Plugin::$instance->uploads_manager->support_unfiltered_elementor_file_uploads( $existing_mimes ); |
| 68 | 57 | } |
| 69 | 58 | |
| 70 | 59 | /** |
| 71 | - * Handle_upload_prefilter | |
| 60 | + * handle_upload_prefilter | |
| 72 | 61 | * |
| 73 | - * @deprecated 3.5.0 Use `Elementor\Plugin::$instance->uploads_manager->handle_elementor_wp_media_upload()` instead. | |
| 62 | + * @deprecated 3.5.0 | |
| 74 | 63 | * |
| 75 | 64 | * @param $file |
| 76 | 65 | * |
| 77 | 66 | * @return mixed |
| @@ -82,9 +71,9 @@ | ||
| 82 | 71 | return Plugin::$instance->uploads_manager->handle_elementor_wp_media_upload( $file ); |
| 83 | 72 | } |
| 84 | 73 | |
| 85 | 74 | /** |
| 86 | - * Is_file_should_handled | |
| 75 | + * is_file_should_handled | |
| 87 | 76 | * |
| 88 | 77 | * @deprecated 3.5.0 |
| 89 | 78 | * |
| 90 | 79 | * @param $file |
| @@ -99,11 +88,11 @@ | ||
| 99 | 88 | return $this->is_elementor_media_upload() && $this->get_file_type() === $ext; |
| 100 | 89 | } |
| 101 | 90 | |
| 102 | 91 | /** |
| 103 | - * File_sanitizer_can_run | |
| 92 | + * file_sanitizer_can_run | |
| 104 | 93 | * |
| 105 | - * @deprecated 3.5.0 Use `Elementor\Core\Files\File_Types\Svg::file_sanitizer_can_run()` instead. | |
| 94 | + * @deprecated 3.5.0 | |
| 106 | 95 | * |
| 107 | 96 | * @return bool |
| 108 | 97 | */ |
| 109 | 98 | public static function file_sanitizer_can_run() { |
| @@ -119,9 +108,9 @@ | ||
| 119 | 108 | * with inconsistent reporting behaviour. |
| 120 | 109 | * ref: https://core.trac.wordpress.org/ticket/39550 |
| 121 | 110 | * ref: https://core.trac.wordpress.org/ticket/40175 |
| 122 | 111 | * |
| 123 | - * @deprecated 3.5.0 Use `Elementor\Plugin::$instance->uploads_manager->check_filetype_and_ext()` instead. | |
| 112 | + * @deprecated 3.5.0 | |
| 124 | 113 | * |
| 125 | 114 | * @param $data |
| 126 | 115 | * @param $file |
| 127 | 116 | * @param $filename |