Skip to content

Commit 51c34f6

Browse files
Copilotswissspidy
andcommitted
Remove redundant WP_ADMIN define, handled by --context=admin
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 44a9171 commit 51c34f6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/Profiler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ function () {
102102
if ( ! defined( 'SAVEQUERIES' ) ) {
103103
define( 'SAVEQUERIES', true );
104104
}
105-
if ( $this->is_admin_request && ! defined( 'WP_ADMIN' ) ) {
106-
define( 'WP_ADMIN', true );
107-
}
108105
}
109106
);
110107
if (

0 commit comments

Comments
 (0)