• Resolved madivad

    (@madivad)


    Some years ago I found what I think was a codex page that detailed how to write a plugin or function that allowed you to change all the text appearances of one string and replace it with another within wordpress.

    It wasn’t a function of the translation features that exist, nor was it a shortcode, it actually had an explicit example of being able to change incorrect spellings or capitalisation of a word that any editor could have introduced in an article r series of articles and change them all to the correct form. It finished with a realisation that WordPress could actually include the feature to change a users incorrect capitalisation of wordpress and make it WordPress, but they decidedly left it out, leaving it to the user to express is how they choose.

    I’ve been trying to find this page again, but I keep coming up with results related to shortcodes and/or translation and it was definitely NOT one of those. Any help would be appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s an interesting discussion on the topic from 2010 located here: https://wptavern.com/automatically-correcting-the-wordpress-mistake

    There’s also links to the proposed filter/function as well as a conversation on a trac ticket found in the article. Hope that points you in the right direction!

    Thread Starter madivad

    (@madivad)

    Great starting point there, interestingly, it was never reverted! I didn’t realise it was in fact in place (I don’t often read posts where I discuss “wordpress” vs “WordPress” in my actual site, I read and re-read things in my editor and since the content is never changed, I never noticed it. (I originally wrote that: none of my sites correct incorrect instances of WordPress, but then I made a post and checked it from the front end and was surprised it was still there).

    My memory serves that it was about what WordPress COULD do, but in hindsight now, it was probably the discussion about the fact they DID it.

    There appears to be a lot of wasted keystrokes in those discussions lol

    The funny thing is, I had a real life purpose for wanting to introduce a similar feature (it was only for my personal site and not correcting anyone else’s “mistakes”), but in reading half of these discussions (I gave up, it was too long) I realise it would break some things of mine. At least if I do apply the filter, I’ll be more weary of HOW it’s applied ??

    Thanks for the reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘turn "wordpress" into "WordPress"’ is closed to new replies.