Skip to content
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
merged 11 commits into from
Oct 6, 2017
Merged

Add reusable blocks REST API #2503

merged 11 commits into from
Oct 6, 2017

Commits on Oct 5, 2017

  1. Configuration menu
    Copy the full SHA
    b579256 View commit details
    Browse the repository at this point in the history
  2. Implement read and edit route

    Adds a GET route for reading reusable blocks, and a PUT route for
    creating and editing reusable blocks.
    noisysocks committed Oct 5, 2017
    Configuration menu
    Copy the full SHA
    6632cd4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aaef07e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3dbef65 View commit details
    Browse the repository at this point in the history
  5. Fix reusable block validation

    The WP_Error wasn't being returned, which meant that a 400 response
    would not occur for invalid block PUT requests.
    noisysocks committed Oct 5, 2017
    Configuration menu
    Copy the full SHA
    6941e39 View commit details
    Browse the repository at this point in the history
  6. Implement browse route

    Adds a GET route for browsing reusable blocks.
    noisysocks committed Oct 5, 2017
    Configuration menu
    Copy the full SHA
    184cdf7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a661832 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    139a78d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    42e6b9a View commit details
    Browse the repository at this point in the history
  10. 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.
    noisysocks committed Oct 5, 2017
    Configuration menu
    Copy the full SHA
    fe58383 View commit details
    Browse the repository at this point in the history
  11. Fix PHPCS lint error

    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.
    noisysocks committed Oct 5, 2017
    Configuration menu
    Copy the full SHA
    a095bac View commit details
    Browse the repository at this point in the history