← All changes
|
app/src/Controllers/Admin/Orders/OrderScriptsController.php
+1
-20
4.5.0
→
2.29.4
View file →
| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | * What types of data to add the the page. |
| 13 | 13 | * |
| 14 | 14 | * @var array |
| 15 | 15 | */ |
| 16 | - protected $with_data = [ 'currency', 'supported_currencies', 'links', 'shipping_protocol', 'i18n', 'google_map_api_key' ]; | |
| 16 | + protected $with_data = [ 'currency', 'supported_currencies', 'links', 'shipping_protocol' ]; | |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Script handle. |
| 20 | 20 | * |
| @@ -27,24 +27,5 @@ | ||
| 27 | 27 | * |
| 28 | 28 | * @var string |
| 29 | 29 | */ |
| 30 | 30 | protected $path = 'admin/orders'; |
| 31 | - | |
| 32 | - /** | |
| 33 | - * Enqueue scripts. | |
| 34 | - * | |
| 35 | - * @return void | |
| 36 | - */ | |
| 37 | - public function enqueue() { | |
| 38 | - parent::enqueue(); | |
| 39 | - // Enqueue CodeMirror editor with wp.codeEditor API. | |
| 40 | - wp_enqueue_code_editor( | |
| 41 | - [ | |
| 42 | - 'type' => 'application/json', | |
| 43 | - 'codemirror' => [ | |
| 44 | - 'indentUnit' => 2, | |
| 45 | - 'tabSize' => 2, | |
| 46 | - ], | |
| 47 | - ] | |
| 48 | - ); | |
| 49 | - } | |
| 50 | 31 | } |