PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← 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 }