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

WordPress Trac noreply at wordpress.org
Sat Dec 4 12:47:51 UTC 2021


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

Comment (by TobiasBg):

 Suggestion: As it's a new function in WP 5.9,
 `_wp_kses_allow_pdf_objects()` could make use of the PHP 8 (but polyfilled
 via [52039] and [52040] in WP 5.9) `str_contains()` and `str_ends_with()`
 functions.

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


More information about the wp-trac mailing list