Make WordPress Core


Ignore:
Timestamp:
05/21/2020 04:52:33 AM (6 years ago)
Author:
peterwilsoncc
Message:

KSES: Support the video element's playsinline attribute.

Allow users without the unfiltered_html capability to use the playsinline attribute when embedding videos.

Additionally this adds unit tests for passing the video element through kses.

Fixes #50167. See #29826.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r47808 r47837  
    398398                'var'        => array(),
    399399                'video'      => array(
    400                         'autoplay' => true,
    401                         'controls' => true,
    402                         'height'   => true,
    403                         'loop'     => true,
    404                         'muted'    => true,
    405                         'poster'   => true,
    406                         'preload'  => true,
    407                         'src'      => true,
    408                         'width'    => true,
     400                        'autoplay'    => true,
     401                        'controls'    => true,
     402                        'height'      => true,
     403                        'loop'        => true,
     404                        'muted'       => true,
     405                        'playsinline' => true,
     406                        'poster'      => true,
     407                        'preload'     => true,
     408                        'src'         => true,
     409                        'width'       => true,
    409410                ),
    410411        );
Note: See TracChangeset for help on using the changeset viewer.