← All changes
|
vendor/team-updraft/lib-central/central/updraftplus.php
+7
-1
3.7.0
→
4.7.0
View file →
| @@ -38,8 +38,9 @@ | ||
| 38 | 38 | public function __construct() { |
| 39 | 39 | parent::__construct(); |
| 40 | 40 | |
| 41 | 41 | add_action('updraftplus_debugtools_dashboard', array($this, 'debugtools_dashboard'), 20); |
| 42 | + add_action('updraftplus_load_translations_for_udcentral', array($this, 'load_updraftplus_translations')); | |
| 42 | 43 | |
| 43 | 44 | $this->maybe_initialize_required_objects(); |
| 44 | 45 | } |
| 45 | 46 | |
| @@ -266,11 +267,16 @@ | ||
| 266 | 267 | if (defined('UPDRAFTPLUS_DIR') && file_exists(UPDRAFTPLUS_DIR.'/includes/class-filesystem-functions.php')) { |
| 267 | 268 | updraft_try_include_file('includes/class-filesystem-functions.php', 'require_once'); |
| 268 | 269 | } |
| 269 | 270 | } |
| 271 | + } | |
| 270 | 272 | |
| 273 | + /** | |
| 274 | + * Load translations which are based on UpdraftPlus domain text | |
| 275 | + */ | |
| 276 | + public function load_updraftplus_translations() { | |
| 271 | 277 | // Load updraftplus translations |
| 272 | 278 | if (defined('UPDRAFTCENTRAL_CLIENT_DIR') && file_exists(UPDRAFTCENTRAL_CLIENT_DIR.'/translations-central.php')) { |
| 273 | - $this->translations = include_once(UPDRAFTCENTRAL_CLIENT_DIR.'/translations-central.php'); | |
| 279 | + $this->translations = include(UPDRAFTCENTRAL_CLIENT_DIR.'/translations-central.php'); | |
| 274 | 280 | } |
| 275 | 281 | } |
| 276 | 282 | } |