Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
902 stars 357 forks source link

Blockbase: Post meta Notice #5075

Open MaggieCabrera opened 2 years ago

MaggieCabrera commented 2 years ago

I'm getting the following notice while running Seedlet Blocks. I see them when I load the site editor:

[23-Nov-2021 09:13:40 UTC] PHP Notice:  "Post Meta" is not a supported wp_template_part area value and has been added as "uncategorized". in /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/block-template-utils.php on line 181
[23-Nov-2021 09:13:40 UTC] PHP Stack trace:
[23-Nov-2021 09:13:40 UTC] PHP   1. {main}() /Users/maggie/A8c/sites/free/app/public/wp-admin/themes.php:0
[23-Nov-2021 09:13:40 UTC] PHP   2. require_once() /Users/maggie/A8c/sites/free/app/public/wp-admin/themes.php:10
[23-Nov-2021 09:13:40 UTC] PHP   3. require_once() /Users/maggie/A8c/sites/free/app/public/wp-admin/admin.php:239
[23-Nov-2021 09:13:40 UTC] PHP   4. do_action() /Users/maggie/A8c/sites/free/app/public/wp-admin/admin-header.php:102
[23-Nov-2021 09:13:40 UTC] PHP   5. WP_Hook->do_action() /Users/maggie/A8c/sites/free/app/public/wp-includes/plugin.php:470
[23-Nov-2021 09:13:40 UTC] PHP   6. WP_Hook->apply_filters() /Users/maggie/A8c/sites/free/app/public/wp-includes/class-wp-hook.php:327
[23-Nov-2021 09:13:40 UTC] PHP   7. gutenberg_edit_site_init() /Users/maggie/A8c/sites/free/app/public/wp-includes/class-wp-hook.php:303
[23-Nov-2021 09:13:40 UTC] PHP   8. gutenberg_initialize_editor() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/full-site-editing/edit-site-page.php:199
[23-Nov-2021 09:13:40 UTC] PHP   9. array_reduce() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/editor-settings.php:76
[23-Nov-2021 09:13:40 UTC] PHP  10. rest_preload_api_request() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/editor-settings.php:76
[23-Nov-2021 09:13:40 UTC] PHP  11. rest_do_request() /Users/maggie/A8c/sites/free/app/public/wp-includes/rest-api.php:2832
[23-Nov-2021 09:13:40 UTC] PHP  12. WP_REST_Server->dispatch() /Users/maggie/A8c/sites/free/app/public/wp-includes/rest-api.php:495
[23-Nov-2021 09:13:40 UTC] PHP  13. WP_REST_Server->respond_to_request() /Users/maggie/A8c/sites/free/app/public/wp-includes/rest-api/class-wp-rest-server.php:987
[23-Nov-2021 09:13:40 UTC] PHP  14. Gutenberg_REST_Templates_Controller->get_items() /Users/maggie/A8c/sites/free/app/public/wp-includes/rest-api/class-wp-rest-server.php:1140
[23-Nov-2021 09:13:40 UTC] PHP  15. gutenberg_get_block_templates() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php:149
[23-Nov-2021 09:13:40 UTC] PHP  16. _get_block_templates_files() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/block-template-utils.php:655
[23-Nov-2021 09:13:40 UTC] PHP  17. _add_block_template_part_area_info() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/block-template-utils.php:304
[23-Nov-2021 09:13:40 UTC] PHP  18. _filter_block_template_part_area() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/block-template-utils.php:354
[23-Nov-2021 09:13:40 UTC] PHP  19. trigger_error() /Users/maggie/A8c/repos/a8c-projects/gutenberg/lib/compat/wordpress-5.9/block-template-utils.php:181
danieldudzic commented 2 years ago

Seems like Post Meta is missing from: https://github.com/WordPress/gutenberg/blob/8eb1f341285362f6a131fcba81a8d054b6b5b5c5/lib/compat/wordpress-5.9/block-template-utils.php#L59

I'm assuming this is not something that we want to add using the default_wp_template_part_areas filter, and rather add support for it in the core?