-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add reusable blocks REST API #2503
Merged
youknowriad
merged 11 commits into
WordPress:master
from
noisysocks:add/reusable-blocks-api
Oct 6, 2017
Merged
Add reusable blocks REST API #2503
youknowriad
merged 11 commits into
WordPress:master
from
noisysocks:add/reusable-blocks-api
Oct 6, 2017
Commits on Oct 5, 2017
-
Configuration menu - View commit details
-
Copy full SHA for b579256 - Browse repository at this point
Copy the full SHA b579256View commit details -
Adds a GET route for reading reusable blocks, and a PUT route for creating and editing reusable blocks.
Configuration menu - View commit details
-
Copy full SHA for 6632cd4 - Browse repository at this point
Copy the full SHA 6632cd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaef07e - Browse repository at this point
Copy the full SHA aaef07eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dbef65 - Browse repository at this point
Copy the full SHA 3dbef65View commit details -
The WP_Error wasn't being returned, which meant that a 400 response would not occur for invalid block PUT requests.
Configuration menu - View commit details
-
Copy full SHA for 6941e39 - Browse repository at this point
Copy the full SHA 6941e39View commit details -
Adds a GET route for browsing reusable blocks.
Configuration menu - View commit details
-
Copy full SHA for 184cdf7 - Browse repository at this point
Copy the full SHA 184cdf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a661832 - Browse repository at this point
Copy the full SHA a661832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 139a78d - Browse repository at this point
Copy the full SHA 139a78dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42e6b9a - Browse repository at this point
Copy the full SHA 42e6b9aView commit details -
Store blocks as HTML rather than content, type and attribute
We don't yet need this functionality, so best to leave it out for now (YAGNI). On the backend, this lets us not have to use post meta. On the frontend, it lets us not have to import private parts of the block serializer and parser.
Configuration menu - View commit details
-
Copy full SHA for fe58383 - Browse repository at this point
Copy the full SHA fe58383View commit details -
PHPCS mistakenly thinks that our calls to $this->namespace are us using the namespace keyword, which is not available in PHP 5.2. The fix is to explicitly ignore the lint error.
Configuration menu - View commit details
-
Copy full SHA for a095bac - Browse repository at this point
Copy the full SHA a095bacView commit details
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.