doc:tips:characterreplacement
Table of Contents
How to disable character replacement
Default behaviour
By default, FlatPress replaces some characters (or character combinations) within your entries and static pages:
- Three dots ("...") become an ellipsis ("β¦")
- Quotations marks become typographic: "text" will become βtextβ
- Trademark sign: "Text (tm)" is being replaced with "Text β’"
- Multiplication sign: "2x3" is displayed as "2Γ3"
β¦ and a few more.
How to disable
If you would like FlatPress not to do these character replacements, just tell it to :)
After the first two lines of your index.php, just add the remove_filter() call as shown:
<?php
include 'defaults.php';
include INCLUDES_DIR . 'includes.php';
// ADD THIS LINE:
remove_filter('the_content', 'wptexturize');
define('MOD_INDEX', 1);
...
More details
The described replacements take place in the function wptexturize() in fp-includes/core/core.wp-formatting.php. Please refer there for a detailled view into the replacement logic.
doc/tips/characterreplacement.txt Β· Last modified: by arvid
