WP Preserve Backslashes
Leave a reply
I created a WordPress plugin based on a personal dilemma I ran into with my site being stripped of backslashes.
Upon post save, it converts backslashes to HTML entity ] which is what will be stored in the database.
The plugin is available on GitHub at https://github.com/rjkreider/wp-preserve-backslashesHere's the function if you want to just drop it in your functions.php file instead of installing it as a plugin.
function wppb_keepbackslash($PostID) {
$thePost = get_post($PostID);
Continue reading →