-
Notifications
You must be signed in to change notification settings - Fork 16
/
readme.txt
93 lines (67 loc) · 2.35 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
=== Log HTTP Requests ===
Contributors: mgibbs189
Tags: log, wp_http, requests, update checks, api
Requires at least: 5.0
Tested up to: 6.2.2
Stable tag: trunk
License: GPLv2
Log and view all WP HTTP requests
== Description ==
= Log and view all WP HTTP requests =
How long do [core / plugin / theme] update checks take to run? What data about my site is being sent out? What about all those ajax requests? The answers to these questions are just a few clicks away.
This plugin logs all WP_HTTP requests and displays them in a table listing for easy viewing. It also stores the runtime of each HTTP request.
= Available Hooks =
Customize the length (in days) before older log items are removed:
<pre>
add_filter( 'lhr_expiration_days', function( $days ) {
return 7; // default = 1
});
</pre>
Don't log items from a specific hostname:
<pre>
add_filter( 'lhr_log_data', function( $data ) {
if ( false !== strpos( $data['url'], 'wordpress.org' ) ) {
return false;
}
return $data;
});
</pre>
In the above example, the `$data` array keys correspond to columns within the `lhr_log` database table.
= Important Links =
* [Github →](https://github.com/FacetWP/log-http-requests)
== Installation ==
1. Download and activate the plugin.
2. Browse to `Tools > Log HTTP Requests` to view log entries.
== Changelog ==
= 1.4.1
* Fixed PHP8 deprecation notices
= 1.4 =
* Added extra ajax role validation (props pluginvulnerabilities.com)
= 1.3.2 =
* Escaped URL field to prevent possible XSS (props Bishop Fox)
= 1.3.1 =
* Ensured compatibility with WP 5.8
= 1.3 =
* Minor PHP cleanup
* Ensured compatibility with WP 5.7
= 1.2 =
* Moved "Log HTTP Requests" to the `Tools` menu (props @aaemnnosttv)
* Added "Status" column to show HTTP response code (props @danielbachhuber)
* Added prev/next browsing to the detail modal (props @marcissimus)
* Added keyboard support (up, down, esc) to the detail modal (props @marcissimus)
* Added raw timestamp to "Date Added" column on hover
* Added hook docs to the readme
= 1.1 =
* Added `lhr_log_data` hook to customize logged data (return FALSE to skip logging)
* Added `lhr_expiration_days` hook
= 1.0.4 =
* Minor styling tweak
= 1.0.3 =
* Better visibility for long URLs
= 1.0.2 =
* Minor design tweaks
* Replaced `json_encode` with `wp_send_json`
= 1.0.1 =
* Tested compatibility against WP 4.9.4
= 1.0.0 =
* Initial release