Repository navigation
REST API: Expose size-aware encode quality on attachment responses #11856
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
Closed
adamsilverstein
wants to merge
16
commits into
WordPress:trunk
from
adamsilverstein:add/rest-image-quality-field
Closed
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
236d585
REST API: Expose size-aware encode quality on attachment responses.
adamsilverstein 1c60f7b
Apply suggestions from code review
adamsilverstein 823596a
Media: Add wp_get_image_encode_quality() helper.
adamsilverstein 8a1ae1a
REST API: Honor jpeg_quality and bound the image_quality schema.
adamsilverstein 61b33fd
Tests: Reference Trac ticket #65262 for image_quality coverage.
adamsilverstein 824ee07
Update src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-c…
adamsilverstein 393e27c
Add types and address PHPStan issues with wp_get_image_encode_quality()
westonruter b09105c
REST API: Reset out-of-range encode quality to the per-format default.
adamsilverstein 2436b94
Merge remote-tracking branch 'origin/trunk' into add/rest-image-quali…
adamsilverstein 8a2aca7
Fix param type for $default_quality
westonruter ae86911
Add return type info for wp_get_registered_image_subsizes()
westonruter 7e0501e
Ensure non-negative-int values are used in dimensions passed to wp_ge…
westonruter f20e7df
Fix assign.byRefForeachExpr
westonruter 5bc92b3
Cast mime_type to string since guaranteed to be so
westonruter 48706d1
Merge remote-tracking branch 'origin/trunk' into add/rest-image-quali…
adamsilverstein a847c9c
Merge branch 'trunk' into add/rest-image-quality-field
adamsilverstein 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 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.