wordpressblog-post

Users can type and edit my published post, can't figure out why


On my post from the first h2 tag and down if you click in the text you can type and edit the content. While it doesn't save, I don't want users to be able to do this. I cannot figure out why this is happening.

I originally posted this in wordpress.stack thinking this was a wordpress issue but now i'm convinced it is my code.

http://google.com/42v70w


Solution

  • This is not Wordpress default behaviour, it's either due to your theme (the Stanley theme) or a plugin you are running.

    I note in the code, the entire <div> surrounding the contents has this attribute on it:

    <div id="contentsContainer" contenteditable="true">
    

    It doesn't look like the contents are editable on the official Stanley site, so I'd hazard a guess that you have a plugin doing something like this.

    If you disable all your plugins, check if the content is editable, and then re-enable each plugin one by one you should be able to determine which plugin is doing this.

    Then, I'd suggest looking into that plugin's specific settings to see whether there's an option to turn this behaviour off.

    For example, here's a plugin that adds this behaviour - WP Errata - are you using that plugin by any chance?