[wp-trac] [WordPress Trac] #54261: KSES: Allow PDFs to be embeded as objects

WordPress Trac noreply at wordpress.org
Mon Oct 18 05:31:58 UTC 2021


#54261: KSES: Allow PDFs to be embeded as objects
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:  pento
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.9
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  has-unit-tests needs-dev-note                  |
-------------------------------------------------+-------------------------

Comment (by dd32):

 Replying to [comment:6 pento]:
 > I agree with your points on potential breakage, there's a small risk,
 but I think it's highly unlikely.
 >
 > If someone is substantially changing the structure of `$allowedposttags`
 (and then restoring it in `wp_kses_allowed_html`, perhaps), that would be
 a totally unsupported use case.

 Agreed, I mostly mentioned it out of completeness of looking for breakage
 points.

 > I've flagged this ticket as needing a dev note, to ensure the changes
 are more widely disseminated.
 The most relevant thing to flag in a dev-note would be that "KSES can now
 have required attributes for tags, and whitelisted values for those
 attributes", and that a use-case is PDF `<object>`'s.

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


More information about the wp-trac mailing list