Make WordPress Core


Ignore:
Timestamp:
10/15/2018 05:21:04 AM (6 years ago)
Author:
peterwilsoncc
Message:

KSES: Allow HTML data-* attributes.

Add global support for HTML attributes prefixed data- for authors and contributors, as required by the new editor.

Props azaozz, peterwilsoncc.
Fixes #33121.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/tests/phpunit/tests/rest-api/rest-attachments-controller.php

    r43720 r43727  
    929929                // Raw values.
    930930                array(
    931                     'title'   => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    932                     'description' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    933                     'caption' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
     931                    'title'   => '<a href="#" target="_blank" unfiltered=true>link</a>',
     932                    'description' => '<a href="#" target="_blank" unfiltered=true>link</a>',
     933                    'caption' => '<a href="#" target="_blank" unfiltered=true>link</a>',
    934934                ),
    935935                // Expected returned values.
Note: See TracChangeset for help on using the changeset viewer.