Latest Posts Widget Block throwing PHP warning #12119
Labels
[Block] Latest Posts
Affects the Latest Posts Block
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Milestone
When the Latest Posts Widget Block is used, I am seeing a PHP warning in the editor for each instance of the block:
Notice: Undefined index: categories in /srv/www/wordpress-develop/public_html/build/wp-content/plugins/gutenberg/packages/block-library/src/latest-posts/index.php on line 22
This same error will also show on the frontend, if the Category of the block is set to "All".
To Reproduce
Expected behavior
There shouldn't be any warnings
Screenshots
Desktop (please complete the following information):
Additional context
https://builds.danielbachhuber.com/gutenberg-nightly.zip
does not throw any warningsThe text was updated successfully, but these errors were encountered: