Make WordPress Core


Ignore:
Timestamp:
12/12/2018 02:38:14 AM (6 years ago)
Author:
jeremyfelt
Message:

KSES: Allow HTML data-* attributes.

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

Merges [43727] to trunk.

Props azaozz, peterwilsoncc.
Fixes #33121.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php

    r43980 r43981  
    10801080                // Raw values.
    10811081                array(
    1082                     'title'       => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    1083                     'description' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    1084                     'caption'     => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
     1082                    'title'       => '<a href="#" target="_blank" unfiltered=true>link</a>',
     1083                    'description' => '<a href="#" target="_blank" unfiltered=true>link</a>',
     1084                    'caption'     => '<a href="#" target="_blank" unfiltered=true>link</a>',
    10851085                ),
    10861086                // Expected returned values.
Note: See TracChangeset for help on using the changeset viewer.