Post lan­guage avail­able in: Eng­lish /​ 简体中文

Diable wptexturize and keep your code readable

English

Quot­marks Replacer is a plu­gin dis­ables wptexturize founc­tion that keeps all quo­ta­tion marks and sus­pen­sion points in half-​​width form.

Update

2.2:

  • Added work­ing tag widget_title
  • Removed work­ing tag comment_excerpt

2.1:

2.0 beta:

  • Now 2.0 use remove_filter make it works, instead of using add_filter to replace the wptex­tur­ized text.

1.20 beta:

  • Added fil­ter single_post_title (Thanks to yskin)

1.1.0 beta:

  • More fil­ters are added (category_description, comment_author, comment_excerpt, list_cats)
  • Opti­mized code

1.0.5 beta:

  • Error in con­vert­ing #8211 and #8212.

1.0.4 beta:

  • Error in con­vert­ing #8243. (Thanks to Erac)

1.0.3 beta:

  • Error in con­vert­ing mul­ti­ple quo­ta­tion marks. (Thanks to her­llin)

1.0.2 beta:

  • New fea­ture: Con­vert sus­pen­sion points(…) into DBC case. (Thanks to Zeax)

1.0.1 beta:

  • Error in mis­tak­ing con­vert­ing blog title into DBC case. (Thanks to raenoll)

Instal­la­tion

  • Upload the “qmr” direc­tory to /​wp-​​content/​plugins/​
  • Go to Plu­g­ins page and acti­vate Quot­marks Replacer
  • Have fun :)

This plu­gin is released under the GPL license. Feel free to use it but please do not remove credit infomation.

@ WordPress Plugin Directory

简体中文

Quot­marks Replacer 是一个通过禁用 wptexturize 函数,解决 WordPress 自动将半角的单引号、双引号和省略号转换为全角标点的问题。使后台输入的标点格式与前台读者浏览的标点格式保持一致的插件。

更新

2.2:

  • 增加标签 widget_title
  • 删除标签 comment_excerpt

2.1:

2.0 beta:

  • 新版本使用 remove_filter 的方法来实现,废弃之前使用 add_filter 替换的方法

1.20 beta:

  • 新增 fil­ter single_post_title(感谢 yskin

1.1.0 beta:

  • 添加了更多的 filter(category_description、comment_author、comment_excerpt、list_cats)
  • 代码优化

1.0.5 beta:

  • 修正 #8211 和 #8212 破折号的自动转换问题

1.0.4 beta:

  • 修正 #8243 双引号的问题(感谢 Erac

1.0.3 beta:

  • 修正多重引号的转换问题(感谢 her­llin

1.0.2 beta:

  • 新功能:增加了对全角省略号(…)的转换(感谢 Zeax

1.0.1 beta:

  • 修正未转换 blog 标题的错误(感谢 raenoll)

安装

  • 将“qmr” 目录上传到 /​wp-​​content/​plugins/​
  • 进入 Plu­g­ins(插件)页面,激活 Quot­marks Replacer
  • Have fun :)

此插件基于 GPL 发布。免费使用,但请不要删除其中的版权信息。

@ WordPress Plugin Directory

Demo
Orig­i­nal texts:
Original texts

Before using:
Before using

After using:
After using

Also see the orig­i­nal post:
http://​spara​noid​.com/​b​l​o​g​/​q​u​o​t​a​t​i​o​n​s​-​t​e​s​t​-​b​y​-​s​p​a​r​a​n​o​i​d​-​s​p​a​r​a​n​o​id/

«

»