-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Gallery: Transforming from [gallery] should fall back to Shortcode block. #11551
Comments
Is this all instances of At this point, because of #5972, I think we might as well not convert |
I understood it to be:
Did you mean Gallery? |
The only glitch is that the transformation API for shortcodes is different from the other ones ( @iseulde, do you remember if there was a motivation to keep the API for shortcodes different? Also, am I right in thinking that we currently can't proceed without tweaking the API? |
Yes, sorry. I've updated my comment. |
This problem would get solved if the core gallery could define That said, using |
Yes, shortcodes are handled in a pretty different way. I can't tell for sure if |
Yup, suppose an alternative approach could be to define specific attributes as required with a possible list of accepted values. |
The specific issue I'm running into frequently on client sites (that led me to this ticket) is galleries using the It would be much better to convert that use case to a shortcode and leave as is. Like mentioned up thread, some sort of conditional determination based on which attributes are used with |
There's a fix in #25144, if you'd like to test and review. |
Quoting @danielbachhuber in #3852 (comment):
The text was updated successfully, but these errors were encountered: