Make WordPress Core

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


Ignore:
Timestamp:
08/07/2021 10:56:24 PM (3 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53806, comment 4

    initial v1  
    1 As @coreyw mentioned, if the provided filename has `block.json` at the end, then it works. However, the [https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#php-server-side Docs] specify `or full path to the metadata file if named differently`.
     1As @coreyw mentioned, if the provided filename has `block.json` at the end, then it works.
     2
     3However, the [https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#php-server-side Docs] specify `or full path to the metadata file if named differently`. This would suggest that any filename with `.json` should work, such as `custom_metadata.json`.
    24
    35I've submitted a PR that is successful with the following local PHPUnit tests: