WordPress.org

Make WordPress Core

Changeset 194 in tests


Ignore:
Timestamp:
04/01/2008 12:39:32 AM (10 years ago)
Author:
tellyworth
Message:

test double-escaping for shortcodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_shortcode.php

    r193 r194  
    141141        $out = do_shortcode('[[baztag foo="bar"]the content[/baztag]]');
    142142        $this->assertEquals('[baztag foo="bar"]the content[/baztag]', $out);
     143       
     144        // double escaped
     145        $out = do_shortcode('[[[footag]]] [[[bartag foo="bar"]]]');
     146        $this->assertEquals('[[footag]] [[bartag foo="bar"]]', $out);
    143147    }
    144148   
     
    156160        $out = do_shortcode('[[not-a-tag]]');
    157161        $this->assertEquals('[[not-a-tag]]', $out);
     162
     163        $out = do_shortcode('[[[footag] [bartag foo="bar"]]]');
     164        $this->assertEquals('[[foo =  foo = bar]]', $out);
    158165    }
    159166   
Note: See TracChangeset for help on using the changeset viewer.