Skip to content

Commit

Permalink
Remove the section about PHP runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jun 18, 2019
1 parent edade13 commit f3456fe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/rfc/block-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ $metadata = array(

Implementation should follow the existing [get_plugin_data](https://codex.wordpress.org/Function_Reference/get_plugin_data) function which parses the plugin contents to retrieve the plugin’s metadata, and it applies translations dynamically.

## PHP Runtime

WordPress automatically discovers all the block.json files in the plugin/core `blocks` folder and registers the corresponding block types. These block types are made available through the [block registry](https://developer.wordpress.org/reference/classes/wp_block_type_registry/) PHP class and the blocks scripts and styles are added as dependencies to the `wp-block-library` script and style handles.

## Backward Compatibility

The existing registration mechanism (both server side and frontend) will continue to work, it will serve as low-level implementation detail for the `block.json` based registration.
Expand Down

0 comments on commit f3456fe

Please sign in to comment.