Changeset 37298
- Timestamp:
- 04/22/2016 07:07:03 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r36915 r37298 131 131 132 132 add_filter( 'the_content', 'wptexturize' ); 133 add_filter( 'the_content', 'convert_smilies' 133 add_filter( 'the_content', 'convert_smilies', 20 ); 134 134 add_filter( 'the_content', 'wpautop' ); 135 135 add_filter( 'the_content', 'shortcode_unautop' ); -
trunk/tests/phpunit/tests/shortcode.php
r36099 r37298 5 5 class Tests_Shortcode extends WP_UnitTestCase { 6 6 7 protected $shortcodes = array( 'test-shortcode-tag', 'footag', 'bartag', 'baztag', 'dumptag', 'hyphen', 'hyphen-foo', 'hyphen-foo-bar', 'url' );7 protected $shortcodes = array( 'test-shortcode-tag', 'footag', 'bartag', 'baztag', 'dumptag', 'hyphen', 'hyphen-foo', 'hyphen-foo-bar', 'url', 'img' ); 8 8 9 9 function setUp() { … … 77 77 function _shortcode_url() { 78 78 return 'http://www.wordpress.org/'; 79 } 80 81 function _shortcode_img( $atts ) { 82 $out = '<img'; 83 foreach ( $atts as $k => $v ) { 84 $out .= " $k=\"$v\""; 85 } 86 $out .= ' />'; 87 88 return $out; 79 89 } 80 90 … … 658 668 $this->assertEquals($expected, $out); 659 669 } 670 671 /** 672 * @ticket 36306 673 */ 674 function test_smilies_arent_converted() { 675 $out = apply_filters( 'the_content', '[img alt="Hello :-) World"]' ); 676 $expected = "<img alt=\"Hello :-) World\" />\n"; 677 $this->assertEquals( $expected, $out ); 678 } 660 679 }
Note: See TracChangeset
for help on using the changeset viewer.