9

With reference to this question: From Code Editor to Wordpress

I was editing the post for formatting issue and when I was saving it, it prompted me for

Code Mandatory

How did the new user on the website manage to bypass it and post the question? As you can see there is no code right now but there is a link to Codepen demo.

13

They had the following, which is indented by 4 spaces:

<p>Thanks for Any Help!!!</p>

And in your edit you removed the 4 spaces in front of it (to be fair you could have probably removed the entire line, as it's noise, although you'd have had exactly the same issue).

So, it seems the site checking mechanism just ensures something in the post is indented by 4 spaces, and so deems there to be code present.

I'm not sure what can be done about it, as it's impossible for the site to identify if code is real or not, as there is gazillions of code possibilities.

I guess this is just one of those checks which probably catches "most" people (although potentially less now this post is here).


EDIT

I've edited the post.
I was going to add the code, but the code and link to Codepen are not relevant anyway, as the question is essentially just asking how to add code/theme to Wordpress.
So I just removed the link and commented to the OP.

  • I thought the site/code checking mechanism was rigid from SO's side, so I skipped seeing that as a possibility. – Manoj Kumar Jul 3 '15 at 1:29
  • The site code is not public, so I can only speculate, but removing the indents on the sentence as per my answer caused the issue you saw. Also, as said, the site can't really identify if text = code. It's just not possible – James Jul 3 '15 at 1:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .