We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90eb2ef commit 21466e7Copy full SHA for 21466e7
debug/debug-profiling.php
@@ -13,7 +13,6 @@ static function ($hook) {
13
static function () use ($hook) {
14
if (
15
php_sapi_name() === 'cli'
16
- || (did_action('parse_query') > 0 && is_robots())
17
|| wp_doing_cron()
18
|| wp_doing_ajax()
19
|| wp_is_json_request()
@@ -26,6 +25,9 @@ static function () use ($hook) {
26
25
add_action(
27
'shutdown',
28
static function () use ($hook, $time, $mem) {
+ if (is_robots()) {
29
+ return;
30
+ }
31
printf(
32
'%c<!-- Profiling: [%.03f] %s - mem %d MB -->',
33
10,
0 commit comments