I run a programming blog. I've been using WP-Syntax plugin for several years now to "colorize" my code samples. I always edit my posts in text mode (never use the WYSIWYG TinyMCE editor - I have it switched off in options). The way I post my code samples is:
<pre lang="java"> // some code goes here </pre>
The lang attribute triggers the WP-Syntax to colorize and escape the code. Lately, I have notice that for all the posts I queue to be posted in the future, the lang attribute is stripped from my posts and ends up looking like this:
<pre> // some code goes here </pre>
I also noticed that certain other tags, are completely stripped out of my posts. For example I sometimes use samp and kbd to make things stand out. For example:
These tags get completely stripped out and removed. As you can imagine it breaks my formatting and makes my carefully edited posts look sloppy and unfinished.
Whenever that happens I see a "ghost" revision added to that post revision history. That revision usually happens in the dead of night and has no author.
Here is a sample screenshot of my revision history on one of the affected posts:
I'm running WordPress 3.5 and try to stay on top of all the updates. I'm running a few other plugins in addition to WP-Syntax but most of them deal with handling comments and comment spam:
- AddQuicktag Version 2.2.1 | By Frank Bültge
- Adsense-Deluxe Version 0.8 | By Acme Technologies
- Akismet Version 2.5.7 | By Automattic
- cbnet Different Posts Per Page Version 2.2 | By chipbennett
- Comment Form Quicktags Version 1.3.2 | By Regen
- Comment Info Detector Version 1.0.5 | By HieuDT
- Comment Toolbar Version 1.4.10 | By Cristiano Fino
- Democracy Version 2.0.1 | By Andrew Sutherland
- Filosofo Comments Preview Version 1.5 | By Austin Matzko
- Word Wrapping Version 1.0.0 | By Jim Wigginton
- Google Sitemaps Version 2.7.1 | By Arne Brachhold
- Highlight Author Comments Version 1.0.2 | By Rob Marsh, SJ
- Link Indication Version 4.4 | By Michael Wöhrer
- List Subpages Version 2.0 | By Rob Miller
- Related Posts Version 2.02 | By Alexander Malov & Mike Lu
- Subscribe To Comments Version 2.1.2 | By Mark Jaquith
- WP-Ban Version 1.60 | By Lester 'GaMerZ' Chan
- WP-SpamFree Version 22.214.171.124 | By WP-SpamFree
- WP-Syntax Version 0.9.13 | By Steven A. Zahm
- WP Super Cache Version 1.2 | By Donncha O Caoimh
I'm using a modified version of the TwentyTen theme, though most of the changes were done to the CSS. Nothing in the theme changed recently.
I'm not sure when this issue has started but it might have been triggered by upgrading to 3.5. I don't think I have seen any of these phantom revisions prior to that. Note that this happens on all posts I schedule to be posted for the future. Posts that have been published don't seem to be affected.
Any idea what could be causing these ghost revisions? Is there a way to track it? Does WordPress scheduling do some post sanitization in the background? Can it be switched off?