mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix naive filtering of uploads directory. #6211
Closed
peterwilsoncc
wants to merge
43
commits into
WordPress:trunk
from
peterwilsoncc:fix/font-filter-infinite-loop
Closed
Changes from 22 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
c6844b3
Test naive filtering of uploads directory.
peterwilsoncc b64bfae
Prevent infinite loop filtering fonts directory. Props @costdev.
peterwilsoncc c1edfba
Restore naive filtering to rest end point.
peterwilsoncc a866973
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 19cc1c7
Thought bubble…
peterwilsoncc a8f9edf
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc d8dfbf5
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc a10dbe4
Improve comment.
peterwilsoncc 2b21c6d
Move the font directory filter registration.
peterwilsoncc ba51db2
Remove cache option: N/A for fonts.
peterwilsoncc d0ef78e
Docblocks.
peterwilsoncc 3277002
Improve comment.
peterwilsoncc db876de
More docblocks.
peterwilsoncc cec16c6
Use static for closure.
peterwilsoncc 94c576b
Revert "Use static for closure."
peterwilsoncc eff1763
Font uploads.
peterwilsoncc 48aca49
Dockblock improvements
peterwilsoncc 606aeae
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 5117eef
Avoid duplicate assertions testing for loop.
peterwilsoncc 4b76a9c
Doc fix.: this not the.
peterwilsoncc addadc3
Font upload, not upload dir.
peterwilsoncc c1ac4e3
Trolling?
peterwilsoncc 3221610
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 1c870cc
Rename function.
peterwilsoncc 1c3b7ac
Filter the font directory late.
peterwilsoncc fb2cfc3
Document late running hook.
peterwilsoncc 607a73a
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 41bbeb7
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 52103f6
Rename function to use plural filters.
peterwilsoncc 21673e5
Remove a a typo.
peterwilsoncc bf2c2fd
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 1183132
Run filter at default priority.
peterwilsoncc f2d5a77
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 0204b99
Remove out of date comment.
peterwilsoncc 9071275
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 022941e
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc eccdbac
Merge default getter and filtering function. Rename.
peterwilsoncc f9e41b2
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 22764e3
Rename function. Props @swissspidy.
peterwilsoncc cf211ae
Document use of filter.
peterwilsoncc 35f8e1b
Add ticket reference
swissspidy ed46c1d
Merge branch 'trunk' into fix/font-filter-infinite-loop
peterwilsoncc 7721163
Merge branch 'fix/font-filter-infinite-loop' of github.com:peterwilso…
peterwilsoncc 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
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
With the need to fallback to the uploads directory this may need to run later (say priority 20) to allow for plugins that filter the uploads directory to an offloader at the default priority, 10. This will avoid an order of operations issue as hooks running at the same priority run in the order they are added.