-
Notifications
You must be signed in to change notification settings - Fork 3.2k
REST API: Themes: Expose some additional basic fields #222
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
Closed
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
e4740bb
REST API: Themes: Expose some additional basic field
ockham 61b89e9
phpcbf
ockham e3a03de
Fix unit tests
ockham 4378fd9
Blindly try adding a unit test for the new stylesheet field
ockham eb662ca
Blindly add unit test for template field
ockham dcf4047
Fix template unit test
ockham db0378b
Add a few more fields
ockham d45471e
Add conditional for screenshot
ockham dfdb0b2
Use default theme for testing
ockham d9dfddd
More flexible implementation
ockham 1acdfb7
Add more unit tests, change author to author_name
ockham f80dbdd
Add author, author_uri, and theme_uri fields
ockham 9b9bace
Have screenshot fall back to empty string
ockham 9282f21
Add format: 'uri' to author_uri and theme_uri
ockham 09e285b
raw/rendered
ockham 364f975
Drop author_name, user raw/rendered for author
ockham f724571
Moar consistent
ockham 8b16987
Use ->display for all teh things
ockham 2e3a487
Change wording to 'as found in the theme header'
ockham d917474
Change `type` to `object` for `author_uri`
ockham 375d25b
Change `type` to `object` for `description`
ockham 505d96d
Change `type` to `object` for `name`
ockham 1e3d010
Change `type` to `object` for `author`
ockham a0c31d6
Change `type` to `object` for `theme_uri`
ockham 769a614
Change `type` to `uri` for `raw` `author_uri` and `theme_uri`
ockham 6c0bcfd
Change `type` to `uri` for `rendered` `author_uri` and `theme_uri`
ockham 34a179c
Add tags
ockham d00cfb4
Whitespace/linebreak
ockham f828777
Add 'items' declaration for 'raw' tags
ockham d14da40
Use (preferred) $theme->get rather than (backward-compat) ArrayAccess
ockham 4a959ae
Add textdomain field
ockham fac13e5
Add requires_php and requires_wp fields
ockham 7f5db79
format should be uri, not type
ockham 019eb4b
Switch to "rest_is_field_included"
TimothyBJacobs fd52d6f
Clean up the schema definition a bit.
TimothyBJacobs 0ec4581
Cleanup tests. Fix stylesheet handling.
TimothyBJacobs 2b0e263
Include fixture in theme list test.
TimothyBJacobs 29ae2dc
We of course have to let the theme work on 5.6 :D
TimothyBJacobs 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
More flexible implementation
- Loading branch information
commit d9dfddd2b532a6bd82c7449773dd4ad45df44ba9
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.
Uh oh!
There was an error while loading. Please reload this page.