Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Block API: Support and bootstrap server-registered block attribute schemas #2529
This replaces the need for blocks registered on the server to handle their own validation and defaulting. Attributes defined in a server block registration are automatically validated using
Included is a port of the Latest Posts blocks attributes definition from client to server.
Verify that there are no regressions in the insertion and saving of a Latest Posts block. In fact, note that the client now correctly defaults alignment to center, which was previously applied only in the server rendering.
Ensure Mocha and PHPUnit tests pass:
@@ Coverage Diff @@ ## master #2529 +/- ## ========================================= - Coverage 31.42% 31.4% -0.02% ========================================= Files 177 177 Lines 5407 5406 -1 Branches 946 946 ========================================= - Hits 1699 1698 -1 Misses 3135 3135 Partials 573 573