| @@ -88,9 +88,9 @@ | ||
| 88 | 88 | $progress->tick(); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | // Run the profiler |
| 92 | - $response = json_decode( CodeProfiler_helpers::codeprofiler_start_profiler(), true ); | |
| 92 | + $response = json_decode( codeprofiler_start_profiler(), true ); | |
| 93 | 93 | if ( $response === false ) { |
| 94 | 94 | $message = __('Unknown error returned by AJAX', 'code-profiler'); |
| 95 | 95 | WP_CLI::error( $message ); |
| 96 | 96 | exit; |
| @@ -105,9 +105,9 @@ | ||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // All good, run the parser |
| 108 | 108 | $_POST['microtime'] = $response['microtime']; |
| 109 | - $response = json_decode( CodeProfiler_helpers::codeprofiler_prepare_report(), true ); | |
| 109 | + $response = json_decode( codeprofiler_prepare_report(), true ); | |
| 110 | 110 | if ( $response === false ) { |
| 111 | 111 | $message = __('Unknown error returned by AJAX', 'code-profiler'); |
| 112 | 112 | WP_CLI::error( $message ); |
| 113 | 113 | exit; |