Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53149, comment 4


Ignore:
Timestamp:
02/18/2022 03:41:21 PM (3 years ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53149, comment 4

    initial v1  
    11An initial step could be also listing the folders to loads `block.json` in the plugin metadata. You would still need the PHP file, but we could simplify block registration for devs and make it so much simpler to detect blocks for the Plugin and Block Directory.
     2
     3The idea would be similar to have Domain Path works in the plugin's header:
     4https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#domain-path
     5https://developer.wordpress.org/plugins/plugin-basics/header-requirements/#header-fields
     6
     7It doesn't remove that much code:
     8
     9https://github.com/WordPress/gutenberg/blob/c630a1e8be0fff442b2313d18e26320c74f087ea/packages/create-block-tutorial-template/templates/%24slug.php.mustache#L31-L34
     10
     11However, it improve the developer experience and we would have better understanding of what the plugin contains like I mentioned above.