Ticket #31931: 31931.patch
File 31931.patch, 1.1 KB (added by , 9 years ago) |
---|
-
tests/phpunit/tests/formatting/WPTexturize.php
644 644 'word "99 word', 645 645 'word “99 word', 646 646 ), 647 array( 648 '"<tag>word</tag>', 649 '“<tag>word</tag>', 650 ), 647 651 ); 648 652 } 649 653 … … 713 717 'test sentence." word', 714 718 'test sentence.” word', 715 719 ), 720 array( 721 '<tag>word</tag>"', 722 '<tag>word</tag>”', 723 ), 716 724 ); 717 725 } 718 726 … … 1773 1781 */ 1774 1782 function test_unregistered_shortcodes( $input, $output ) { 1775 1783 add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); 1776 1784 1777 1785 $output = $this->assertEquals( $output, wptexturize( $input ) ); 1778 1786 1779 1787 remove_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); 1780 1788 return $output; 1781 1789 } 1782 1790 1783 1791 function filter_shortcodes( $disabled ) { 1784 1792 $disabled[] = 'audio'; 1785 1793 return $disabled; … … 1849 1857 ), 1850 1858 ); 1851 1859 } 1852 } 1853 No newline at end of file 1860 }