I'm currently working on porting a client's website from their current CMS (which is self-built) to WordPress.
The client's site uses the following structure for links:
I've gotten this part fixed through using wp_rewrite rules, nothing strange there.
However, the post name should be using "+" to separate words instead of "-". This I fixed by removing the "sanitize_title_with_dashes" and replacing it with my own (through a plug-in). So accessing http://www.example.com/post/1/hello+world is not an issue. HOWEVER, when you try to go to that URL, the + gets encoded so the URL in the address bar gets changed so that it says: http://www.example.com/post/1/hello%2bworld
I've used a plus through URL encoding before and never had an issue, but how come it gets encoded a second time? Is there a filter in WordPress I've missed?