Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit 57f3d9f

Browse files
committed
DOING_AJAX check
For IE compatibility WordPress media upload, thanks to @ViliamKopecky
1 parent 0c3f146 commit 57f3d9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
if (defined("DOING_AJAX") && DOING_AJAX) {
4+
return; // for IE compatibility WordPress media upload
5+
}
6+
37
if (defined("WP_TRACY_CHECK_USER_LOGGED_IN") && WP_TRACY_CHECK_USER_LOGGED_IN && is_user_logged_in()) {
48
return; // cancel for anonymous users
59
}

0 commit comments

Comments
 (0)