[wp-trac] [WordPress Trac] #52961: Add 'object-position' as an allowed CSS attribute

WordPress Trac noreply at wordpress.org
Fri Apr 2 12:40:12 UTC 2021


#52961: Add 'object-position' as an allowed CSS attribute
--------------------------+-----------------------------
 Reporter:  Mamaduka      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.7.1
Component:  Formatting    |     Version:  5.7
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50634" 50634]:
 {{{
 #!CommitTicketReference repository="" revision="50634"
 KSES: Add `object-position` to the list of safe CSS properties.

 This resolves an issue with the Cover block, where the `object-position`
 property is removed from the content when a non-admin user saves the post,
 leading to block recovery loop.

 Props Mamaduka, aristath.
 Fixes #52961.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52961#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list