Make WordPress Core


Ignore:
Timestamp:
07/29/2015 08:06:56 PM (9 years ago)
Author:
azaozz
Message:

Fix do_shortcode('<[shortcode]') edge case.
Props miqrogroove. Fixes #33116 for 4.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/tests/phpunit/tests/shortcode.php

    r33360 r33499  
    418418            ),
    419419            array(
     420                '<[[gallery]]>',
     421                '<[gallery]>',
     422            ),
     423            array(
     424                '<div style="background:url([[gallery]])">',
     425                '<div style="background:url([[gallery]])">',
     426            ),
     427            array(
    420428                '[gallery]<div>Hello</div>[/gallery]',
    421429                '',
     
    454462                '<div [[gallery]]>', // Shortcodes will never be stripped inside elements.
    455463                '<div [[gallery]]>',
     464            ),
     465            array(
     466                '<[[gallery]]>',
     467                '<[[gallery]]>',
    456468            ),
    457469            array(
Note: See TracChangeset for help on using the changeset viewer.