WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2015 07:16:32 AM (6 years ago)
Author:
dd32
Message:

Fix do_shortcode('<[shortcode]') edge case.
Props miqrogroove.

Merges [33499] to the 4.1 branch.
See #33116.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/tests/phpunit/tests/shortcode.php

    r33380 r33564  
    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.