Sampson Profile picture
Webmaster since the mid-90's. The Office. Microsoft Alumni. 4th Stack Overflow Mod. Jesus, JavaScript, and Jiu-Jitsu. Making a better Web @brave 🇺🇸🇧🇷

Oct 2, 2020, 5 tweets

WordPress, for all the good it has done, simply cannot help but to screw up the simplest things.

<pre>\\.well-known</pre>

In walks WordPress, "Oh, let me quadruple those backslashes for you."

So I try &#92;, which WordPress then converts into &amp;#92;!

I just can't win here.

Yes, I know to make changes in the TEXT view, and not the Visual view. Tragically, that will give you all sorts of [other] problems, like randomly eating carriage-returns, or inserting a <br> here and there. This utility simply isn't cut-out for sharing code(-like) content.

Wait, wait—I got the formatting to stick, and the content to look the way I wanted.

NOBODY-MOVE-A-MUSCLE…

Anybody know what these lines of code do in the WordPress source? They look relevant…

add_action( 'save_post', '💩ify_input' );
add_action( 'save_post', 'lol_random_noise' );

Fun Fact: WordPress has an internal method called capital_P_dangit which changes cases of 'Word[p]ress' into the preferred 'Word[P]ress'. They go the extra mile to make sure I don't mess up their name, but they'll doo-doo all over my pre-formatted text 🤨 developer.wordpress.org/reference/func…

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling