Conversation
|
@gziolo why was this undocumented when it's still something that applies? Docs should be clear about it, no? Also, why the hard limit? Couldn't find anything about the reasoning behind this limitation. Asking just for curiosity, not sure I'd ever need more than three keywords when I can have more than one in each string. |
|
There is no limit anymore. |
|
But only the first three keywords are used when searching for a block. Am I missing something? |
Can you reproduce it? Looking at code, I can't find any logic which would ignore any keywords: |
|
You're right. I've just tested with a couple blocks I built from scratch and it definitely shows up. Issue was with ACF blocks so it might be something on their side. I'll look into it and follow up there. Sorry for the trouble ❤️ |
It's totally fine. Thank you for testing with custom blocks 👍 |
Description
Opened to rebase and close #11953. All work was done by @jameelmoses.
Fixes: #11949
Instead of failing to register a block if more than 3 keywords are given, only return the first 3 by slicing the keywords array.
How has this been tested?
npm run lintTypes of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: