Opened 5 years ago
Closed 3 years ago
#45108 closed defect (bug) (invalid)
WordPress is making a request in background
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.8 |
Component: | General | Keywords: | 2nd-opinion needs-testing |
Focuses: | Cc: |
Description
Something very weird is going one, here are the steps to reproduce:
- Add a $wpdb->insert into header or footer
- refresh the page
Expected results: A single entry in database
Actual result: 2 entries
More details: If you check the http referer you will see is the referer of the current page
So it looks like somehow there is another request that is triggering the insert. Weird part is that it does not show up in newtwork xhr request when you debug it.
I marked this as critical, because is doing another request -> this will result in slower website due to multiple request!!!
Attachments (1)
Change History (4)
#1
@
5 years ago
I forgot to mention that I'm using Twenty Seventeen theme with all plugins disabled except the one I'm building ...
I checked via var_dump ( id_saved) and I got only 1 result (but multiple results in database)
#2
@
5 years ago
- Keywords close added
- Severity changed from critical to normal
phpmyadmin result after refreshing the page just once with all plugins disabled