Make WordPress Core

Ticket #31931: 31931.patch

File 31931.patch, 1.1 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                        ),
    647651                );
    648652        }
    649653
     
    713717                                'test sentence." word',
    714718                                'test sentence.&#8221; word',
    715719                        ),
     720                        array(
     721                                '<tag>word</tag>"',
     722                                '<tag>word</tag>&#8221;',
     723                        ),
    716724                );
    717725        }
    718726
     
    17731781         */
    17741782        function test_unregistered_shortcodes( $input, $output ) {
    17751783                add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 );
    1776        
     1784
    17771785                $output = $this->assertEquals( $output, wptexturize( $input ) );
    1778        
     1786
    17791787                remove_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 );
    17801788                return $output;
    17811789        }
    1782        
     1790
    17831791        function filter_shortcodes( $disabled ) {
    17841792                $disabled[] = 'audio';
    17851793                return $disabled;
     
    18491857                        ),
    18501858                );
    18511859        }
    1852 }
    1853  No newline at end of file
     1860}