Block Library: Add 'object-position' to allowed inline style attributes list#30243
Conversation
|
Thanks, @aristath, for the review.
Right, I also create PR for it WordPress/wordpress-develop#1156. My question is if we should keep fallback in the plugin while supporting a non backported core version. |
Awesome 👍
I'd say yes. The Gutenberg plugin needs to support previous versions of WP and not just the latest one, so this will need to be there. if ( ! in_array( 'object-option', $attrs ) ) {
$attrs[] = 'object-position';
}or instead of |
2307e11 to
ed3d1ca
Compare
Agree. Added note about removal. I'll merge this if it's okay with you. |
Thank you :)
Agreed |
|
Changes are merged into the core. Changeset https://core.trac.wordpress.org/changeset/50649 |
Description
The
object-positionproperty, used by the Cover block, isn't in the list of allowed CSS attributes. It's removed from the content when non-admin users save a post.Fixes #29907.
How has this been tested?
Types of changes
Bugfix
Checklist: