Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the Block Directory by default #267

Open
1 task done
michael-sumner opened this issue Jan 7, 2025 · 1 comment
Open
1 task done

Remove the Block Directory by default #267

michael-sumner opened this issue Jan 7, 2025 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@michael-sumner
Copy link
Member

Is your enhancement related to a problem? Please describe.

When searching for a block that does not exist, there will be a spinning indicator with no accessible error message.

Image

This can cause the user to assume that the infinite loading is a greater issue, when in reality it is due to no results found.

Designs

No response

Describe alternatives you've considered

Since it is related to displaying block plugins if no results found, then it will be better to add this line of code to the theme core.php file:
https://developer.wordpress.org/block-editor/reference-guides/filters/editor-filters/#block-directory

remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );

Now, the no search results found will display a message "No results found."

Image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fabiankaegy
Copy link
Member

Great callout 👍 Lets get this added :)

@fabiankaegy fabiankaegy added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants