Repository navigation
Implement logic to measure specific hook execution time with Server-Timing controlled by a WP Admin screen #784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a1fd89c
Implement logic to measure specific hook execution time with Server-T…
1c21d08
Merge branch 'trunk' into add/server-timing-hook-ui
ec9708b
Fix newly exposed lint violations.
6a1205f
Use more appropriate workaround when PHP_INT_MIN is not defined.
08d79c3
Merge branch 'trunk' into add/server-timing-hook-ui
694a6d1
Reuse logic to measure actions and filters, and provide inline docume…
6b5d12a
Clarify how the hooks are measured in WP Admin UI.
61f5ccc
Ensure that no duplicate hooks can be provided.
585911d
Add tests for server timing setting registration.
6db1e85
Add tests for server timing admin UI.
a8d141f
Remove XHTML syntax from WP Admin forms.
400c0a1
Modify hook measuring logic to use all hook.
c5fe384
Replace sanitize_key for hook name sanitization with custom regex to …
447f078
Have hook callbacks self-remove to only measure first occurrence.
c48d206
Remove novalidate attribute.
b85959e
Loosen hook name sanitization to rely on sanitize_text_field(), while…
124a7a6
Update test to cover whitespace in hookname.
7f99021
Use allowlist for Server-Timing option keys.
05d849e
Fix tests.
fd41db1
Add note on hook limitation unless output buffering is enabled.
f484a7d
Use placeholders for non-translatable strings.
7c94b9e
Add missing early return on top of procedural file.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add note on hook limitation unless output buffering is enabled.
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use sprintf with a placeholder for
template_includeso that it does not get translated