Make WordPress Core


Ignore:
Timestamp:
08/09/2015 08:48:02 PM (9 years ago)
Author:
ocean90
Message:

Shortcodes: Trim whitespace after sanitizing the shortcode output.

props Ankit K Gupta, obenland, miqrogroove.
fixes #33259.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/shortcode.php

    r33594 r33600  
    420420            ),
    421421            array(
     422                '1 <a href="[test-shortcode-tag]"> 2 <a href="[test-shortcode-tag]" >',
     423                '1 <a href=""> 2 <a href="" >',
     424            ),
     425            array(
     426                '1 <a noise="[test-shortcode-tag]"> 2 <a noise=" [test-shortcode-tag] " >',
     427                '1 <a noise="[test-shortcode-tag]"> 2 <a noise=" [test-shortcode-tag] " >',
     428            ),
     429            array(
    422430                '[gallery title="<div>hello</div>"]',
    423431                '',
Note: See TracChangeset for help on using the changeset viewer.