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 block data to REST API #2649

Open
wants to merge 69 commits into
base: trunk
Choose a base branch
from

Commits on Sep 7, 2017

  1. first pass

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    d45e15c View commit details
    Browse the repository at this point in the history
  2. it works, second pass

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    09a8e51 View commit details
    Browse the repository at this point in the history
  3. add gutenburg block class

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    f70f6bb View commit details
    Browse the repository at this point in the history
  4. remove logging, add inline docs, clean up

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    6f73d88 View commit details
    Browse the repository at this point in the history
  5. add rendered block content when available

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    97d282b View commit details
    Browse the repository at this point in the history
  6. restore register.php

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    30d12b9 View commit details
    Browse the repository at this point in the history
  7. restore register.php

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    488690d View commit details
    Browse the repository at this point in the history
  8. restore register.php

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    632a07d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9ce9ca4 View commit details
    Browse the repository at this point in the history
  10. Remap response fields to match WordPress#2503

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    148469e View commit details
    Browse the repository at this point in the history
  11. Remove WP_Gutenberg_Block_Controller class

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    96f1fa2 View commit details
    Browse the repository at this point in the history
  12. Attach the block data to the rest api post response

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    2023901 View commit details
    Browse the repository at this point in the history
  13. remove unused $request parameter from callback

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    b4a3a92 View commit details
    Browse the repository at this point in the history
  14. whitespace cleanup

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    4c00931 View commit details
    Browse the repository at this point in the history
  15. remove extraneous extra loop

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    5a17b33 View commit details
    Browse the repository at this point in the history
  16. Clean up data response

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    dff3f0b View commit details
    Browse the repository at this point in the history
  17. fix rendered data setup

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    cfd2f5e View commit details
    Browse the repository at this point in the history
  18. rename get_block_data_for_api_from_post_content -> get_block_data_for…

    …_api_from_post_content
    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    36f1000 View commit details
    Browse the repository at this point in the history
  19. Skip block if we didn’t get a valid block name.

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    d990979 View commit details
    Browse the repository at this point in the history
  20. use already set up $block_name

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    5937d1a View commit details
    Browse the repository at this point in the history
  21. attributes: use $attributes and return even if null

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    862bccc View commit details
    Browse the repository at this point in the history
  22. return rendered, even if null

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    a5756f5 View commit details
    Browse the repository at this point in the history
  23. ensure $post_type IS an array

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    8340341 View commit details
    Browse the repository at this point in the history
  24. Always attach blocks, even if null.

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    957dc7e View commit details
    Browse the repository at this point in the history
  25. use get_data/set_data to adjust response

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    bc5f31e View commit details
    Browse the repository at this point in the history
  26. Code clean up, improve documentation blocks

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    5509c1b View commit details
    Browse the repository at this point in the history
  27. Fixes for phpcs

    Adam Silverstein committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    822ffe2 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2017

  1. Clean up data setup

    Adam Silverstein committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    6cf7a5f View commit details
    Browse the repository at this point in the history
  2. revert unreleated changes

    Adam Silverstein committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    23a5565 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2017

  1. Add tests for the rest api block data in posts->content

    Adam Silverstein committed Sep 10, 2017
    Configuration menu
    Copy the full SHA
    36f5df1 View commit details
    Browse the repository at this point in the history
  2. attach block data to pages and posts

    Adam Silverstein committed Sep 10, 2017
    Configuration menu
    Copy the full SHA
    37513d1 View commit details
    Browse the repository at this point in the history
  3. Add a filter for whether to add block data to api response: gutenberg…

    …_add_blocks_to_rest_for_post_type
    Adam Silverstein committed Sep 10, 2017
    Configuration menu
    Copy the full SHA
    daece40 View commit details
    Browse the repository at this point in the history
  4. fixes for phpcs

    Adam Silverstein committed Sep 10, 2017
    Configuration menu
    Copy the full SHA
    1eb5331 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    728e725 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Sep 25, 2017
    Configuration menu
    Copy the full SHA
    8117871 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    7e8a823 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-block-rest-endpoints

    Adam Silverstein committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    bc2600d View commit details
    Browse the repository at this point in the history
  3. Fix data return setup for blocks data

    Adam Silverstein committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    d395197 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Oct 19, 2017
    Configuration menu
    Copy the full SHA
    08cdb15 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    9d6b95c View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Nov 16, 2017
    Configuration menu
    Copy the full SHA
    1e9572c View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Nov 26, 2017
    Configuration menu
    Copy the full SHA
    b82fa9d View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    cbd0c62 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    9374837 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    218299c View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Dec 28, 2017
    Configuration menu
    Copy the full SHA
    8d75bb7 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2017

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Dec 29, 2017
    Configuration menu
    Copy the full SHA
    b7ae85a View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    d82bfa9 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-block-rest-endpoints

    # Conflicts:
    #	lib/blocks.php
    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    951b8d6 View commit details
    Browse the repository at this point in the history
  3. restore api code after merge

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    f0355f0 View commit details
    Browse the repository at this point in the history
  4. readd gutenberg_add_blocks_to_post_resource after merge

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    55732b8 View commit details
    Browse the repository at this point in the history
  5. alignment for phpcs

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    5e4db00 View commit details
    Browse the repository at this point in the history
  6. update tests for new demo data

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    bd638d1 View commit details
    Browse the repository at this point in the history
  7. fix test_delete_item expected

    Adam Silverstein committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    0098344 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    4f5c72f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    1573cc4 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    391c0ec View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2019

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    7afbe67 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    2b37f93 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2019

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Mar 26, 2019
    Configuration menu
    Copy the full SHA
    b71ef00 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2019

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    989f0ca View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Merge branch 'master' of github.com:WordPress/gutenberg

    Adam Silverstein committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    74092df View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-block-rest-endpoints

    # Conflicts:
    #	lib/blocks.php
    #	phpunit/class-rest-blocks-controller-test.php
    Adam Silverstein committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    2144d20 View commit details
    Browse the repository at this point in the history
  3. restore after merge conflict resolution

    Adam Silverstein committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    63de8af View commit details
    Browse the repository at this point in the history
  4. Update parser use

    Adam Silverstein committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    131dd90 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2020

  1. merge

    adamsilverstein committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    1c6b213 View commit details
    Browse the repository at this point in the history
  2. Cleanup for PHPCS.

    adamsilverstein committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    546fb81 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    812af84 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8258cb6 View commit details
    Browse the repository at this point in the history