PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.7.3
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.7.3
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
← All changes | includes/Core/Importer/Utils/LogHandler.php +4 -3 3.6.2 → 3.7.3 View file →
@@ -1,14 +1,15 @@
1 1 <?php
2 2 namespace Templately\Core\Importer\Utils;
3 3
4 4 use Templately\Core\Importer\FullSiteImport;
5 +use Templately\Utils\Helper;
5 6
6 7 class LogHandler {
7 8 public static function get_log_dir() {
8 - $upload_dir = wp_upload_dir();
9 - $log_dir = trailingslashit($upload_dir['basedir']) . 'templately' . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR;
10 - return $log_dir;
9 + // Import logs carry pack and session detail and sit in web-served
10 + // wp-uploads, so the root gets its access guards on the way past.
11 + return Helper::upload_dir('log');
11 12 }
12 13
13 14 public static function get_log_file_path() {
14 15 $session_id = SessionData::get_session_id();