sudo tee wp-content/mu-plugins/debug-image-downsize-invalid-size.php > /dev/null <<'PHP'
$frame['file'] ?? '',
'file' => $frame['file'] ?? '',
'line' => $frame['line'] ?? 0,? '',
'function' => $frame['function'] ?? '',
'class' => $frame['class'] ?? '',
];
}
$entry = [
$entry = [ => date('c'),
'time' => date('c'),REQUEST_URI'] ?? '',
'request' => $_SERVER['REQUEST_URI'] ?? '',
'id' => $id,e,
'size' => $size,s,
'trace' => $frames,
];
file_put_contents(
file_put_contents( . '/image-downsize-invalid-size.log',
WP_CONTENT_DIR . '/image-downsize-invalid-size.log',_UNESCAPED_SLASHES) . PHP_EOL,
wp_json_encode($entry, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . PHP_EOL,
FILE_APPEND | LOCK_EX
);
}
return $out;
return $out;
}, 1, 3);
Paulo Monteiro, Autor em SempreUpdate