[wp-trac] [WordPress Trac] #29807: add support for picture element and srcset attribute on img in wp_kses

WordPress Trac noreply at wordpress.org
Sat Jul 31 15:17:55 UTC 2021


#29807: add support for picture element and srcset attribute on img in wp_kses
-------------------------------------------------+-------------------------
 Reporter:  mattheu                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by oglekler):

 I am using reusable blocks in different places, it is very useful, but I
 came across the problem that wp_kses_post() is removing 'picture' and
 'source'. Trying to follow standards become a bit tricky. I override
 WordPress global which is prohibited. So, there is no way around
 //phpcs:ignore

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


More information about the wp-trac mailing list