该页面上的解决方案很好。它生成意外输出的原因是,您可能在粘贴尾随空格时意外抓取了它。如果改用此选项:
<?php
/*
Plugin Name: TurnOffSmartQuotes
Plugin URI:
Description: Stops WordPress from converting your quote symbols into smartquotes. The three lines below stop the smartquote conversion in 1) your post content, 2) your comments, and 3) your post excerpts.
Version: 0.1
Author: Katja Stokley
Author URI:
*/
remove_filter(\'the_content\', \'wptexturize\');
remove_filter(\'comment_text\', \'wptexturize\');
remove_filter(\'the_excerpt\', \'wptexturize\');
这应该可以奏效。
我不知道为什么WordPress没有正确地将“没有”纹理化,但这会解决问题。