Make WordPress Core


Ignore:
Timestamp:
10/15/2018 05:21:04 AM (5 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-posts-controller.php

    r43720 r43727  
    29142914                // Raw values.
    29152915                array(
    2916                     'title'   => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    2917                     'content' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
    2918                     'excerpt' => '<a href="#" target="_blank" data-unfiltered=true>link</a>',
     2916                    'title'   => '<a href="#" target="_blank" unfiltered=true>link</a>',
     2917                    'content' => '<a href="#" target="_blank" unfiltered=true>link</a>',
     2918                    'excerpt' => '<a href="#" target="_blank" unfiltered=true>link</a>',
    29192919                ),
    29202920                // Expected returned values.
Note: See TracChangeset for help on using the changeset viewer.