Ticket #31931: 31931.2.patch
File 31931.2.patch, 1.3 KB (added by , 10 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 ), 651 array( 652 '"<tag>word</tag>', 653 '“<tag>word</tag>', 654 ), 647 655 ); 648 656 } 649 657 … … 713 721 'test sentence." word', 714 722 'test sentence.” word', 715 723 ), 724 array( 725 '<tag>word</tag>" ', 726 '<tag>word</tag>” ', 727 ), 728 array( 729 '<tag>word</tag>"', 730 '<tag>word</tag>”', 731 ), 716 732 ); 717 733 } 718 734 … … 1773 1789 */ 1774 1790 function test_unregistered_shortcodes( $input, $output ) { 1775 1791 add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); 1776 1792 1777 1793 $output = $this->assertEquals( $output, wptexturize( $input ) ); 1778 1794 1779 1795 remove_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); 1780 1796 return $output; 1781 1797 } 1782 1798 1783 1799 function filter_shortcodes( $disabled ) { 1784 1800 $disabled[] = 'audio'; 1785 1801 return $disabled; … … 1849 1865 ), 1850 1866 ); 1851 1867 } 1852 } 1853 No newline at end of file 1868 }