#14269 closed defect (bug) (fixed)
Add capital_P_dangit patch to forums
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | WordPress.org | Priority: | normal |
Severity: | normal | Version: | |
Component: | WordPress.org Site | Keywords: | |
Focuses: | Cc: |
Description
Too many times, in the title and the topic content fields see wordpress and Wordpress typed, so the capital_P_dangit fix should be installed in the forums.
Change History (7)
#3
@
15 years ago
- Resolution set to fixed
- Status changed from new to closed
Thanks for pointing out the oversight. :)
#5
@
15 years ago
Like it or not, capital_P_dangit() function included with WP 3.0 is just bad. Simple search and replace has proven as problem, and the only solution that will actually work is to use a function that uses regular expressions and with that ignores the WordPress word in the URL's.
I wrote such function, and it's a part of my GD Press Tools plugin. Due to some limitations in PHP regular expression engine, preg_replace function can't be used in this case, but the function I wrote uses preg_match_all and that replaces the word based on results from this function.
I think there should be alot more tickets like this. +1