Make WordPress Core

Ticket #31931: 31931.2.patch

File 31931.2.patch, 1.3 KB (added by iseulde, 10 years ago)
  • tests/phpunit/tests/formatting/WPTexturize.php

     
    644644                                'word "99 word',
    645645                                'word “99 word',
    646646                        ),
     647                        array(
     648                                ' "<tag>word</tag>',
     649                                ' &#8220;<tag>word</tag>',
     650                        ),
     651                        array(
     652                                '"<tag>word</tag>',
     653                                '&#8220;<tag>word</tag>',
     654                        ),
    647655                );
    648656        }
    649657
     
    713721                                'test sentence." word',
    714722                                'test sentence.&#8221; word',
    715723                        ),
     724                        array(
     725                                '<tag>word</tag>" ',
     726                                '<tag>word</tag>&#8221; ',
     727                        ),
     728                        array(
     729                                '<tag>word</tag>"',
     730                                '<tag>word</tag>&#8221;',
     731                        ),
    716732                );
    717733        }
    718734
     
    17731789         */
    17741790        function test_unregistered_shortcodes( $input, $output ) {
    17751791                add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 );
    1776        
     1792
    17771793                $output = $this->assertEquals( $output, wptexturize( $input ) );
    1778        
     1794
    17791795                remove_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 );
    17801796                return $output;
    17811797        }
    1782        
     1798
    17831799        function filter_shortcodes( $disabled ) {
    17841800                $disabled[] = 'audio';
    17851801                return $disabled;
     
    18491865                        ),
    18501866                );
    18511867        }
    1852 }
    1853  No newline at end of file
     1868}