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-posts-controller.php

    r43980 r43981  
    32843284                // Raw values.
    32853285                array(
    3286                     'title'   => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    3287                     'content' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    3288                     'excerpt' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
     3286                    'title'   => '<a href="#" target="_blank" unfiltered=true>link</a>',
     3287                    'content' => '<a href="#" target="_blank" unfiltered=true>link</a>',
     3288                    'excerpt' => '<a href="#" target="_blank" unfiltered=true>link</a>',
    32893289                ),
    32903290                // Expected returned values.
Note: See TracChangeset for help on using the changeset viewer.