mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-08-17 18:11:08 +08:00
Update debug-post-requests.php
This commit is contained in:
parent
b5474e8baa
commit
dae1eca39b
1 changed files with 1 additions and 2 deletions
|
@ -10,10 +10,9 @@ if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST')
|
|||
file_put_contents(
|
||||
WP_CONTENT_DIR.'/debug-post-request.log',
|
||||
sprintf(
|
||||
'%.2f %s@%.4f %s %s%c',
|
||||
'%.2f %s %s %s%c',
|
||||
microtime(true),
|
||||
php_sapi_name() === 'cli' ? 'CLI' : $_SERVER['REMOTE_ADDR'],
|
||||
$_SERVER['REQUEST_TIME_FLOAT'],
|
||||
$_SERVER['REQUEST_URI'],
|
||||
json_encode($_POST),
|
||||
10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue