WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.47k stars 4.18k forks source link

Block patterns: Allow themes to show their patterns first #39500

Open MaggieCabrera opened 2 years ago

MaggieCabrera commented 2 years ago

What problem does this address?

Right now the only way for a theme to control the order in which the registered patterns in the default categories show in the inserter is via re-registering the already existing categories. This is even done by TT2.

What is your proposed solution?

It feels like theme patterns are always going to be more relevant to the user than the default ones from core, so it would be good to either have an option when registering the template for the sort order or make the theme ones show up first by default.

richtabor commented 2 years ago

I've noticed this as well. TT2's patterns are actually not loading with priority, even with the default categories being re-rendered. I also think a theme's patterns should be given a higher priority than core/remote patterns.