| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 | 7 | | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 | 8 | | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 | 9 | | | |
| 10 | - | (c) Jerome Bruandet ~ https://code-profiler.com/ | | |
| 10 | + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | if (! defined('ABSPATH') ) { die('Forbidden'); } |
| @@ -203,9 +203,9 @@ | ||
| 203 | 203 | * |
| 204 | 204 | */ |
| 205 | 205 | private function find_last_profile() { |
| 206 | 206 | |
| 207 | - $profiles = glob( CODE_PROFILER_UPLOAD_DIR .'/*.slugs.profile'); | |
| 207 | + $profiles = code_profiler_glob( CODE_PROFILER_UPLOAD_DIR, '\.slugs\.profile$', true ); | |
| 208 | 208 | |
| 209 | 209 | array_multisort( |
| 210 | 210 | array_map('filectime', $profiles ), |
| 211 | 211 | SORT_NUMERIC, |
| @@ -267,9 +267,9 @@ | ||
| 267 | 267 | |
| 268 | 268 | $this->is_enabled(); |
| 269 | 269 | |
| 270 | 270 | WP_CLI::log("\nCode Profiler v". CODE_PROFILER_VERSION . |
| 271 | - " (c)". date('Y') ." Jerome Bruandet & NinTechNet Limited ~ https://code-profiler.com/\n\n". | |
| 271 | + " (c)". date('Y') ." Jerome Bruandet & NinTechNet Limited ~ https://nintechnet.com/codeprofiler/\n\n". | |
| 272 | 272 | " {$this->cmd_view} ". __('View last created profile', 'code-profiler') ."\n". |
| 273 | 273 | " {$this->cmd_run} ". __('Run the profiler in the frontend', 'code-profiler') ."\n\n". |
| 274 | 274 | __('GLOBAL PARAMETERS', 'code-profiler') ."\n\n". |
| 275 | 275 | " --dest=<URL to profile> **". __('Pro version only', 'code-profiler') ."**\n". |