WordPress engine fail on embeded smilies in source

So I went to post a source code snippet and kept getting this

<img src="http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif?m=1268811515g" alt=":o" class="wp-smiley">

Whenever I had :o in my examples. Say for a ruby on rails :order example.

Turns out smilies can be disabled blog wide. I would just expect wordpress to not parse ‘smilies’ in my sourcecode blocks.


Author’s Note

Initial md Generated using https://github.com/jsr6720/wordpress-html-scraper-to-md

Original Wordpress categories: [‘Misc’]

Original Wordpress tags: “Misc”, “parse”, “smilies”, “wordpress engine”

Original Wordpress comments: 1 Comment

  • May 13th, 2024 in revisiting this post just over 13 years later I laugh at my use of “smilies”[sic].

Significant revisions

tags: 2011, wordpress, txcowboycoder, gotchas, wordpress, parsing, emojiis

  • May 6th, 2024 Converted to jekyll markdown format and copied to personal site
  • Jan 16th, 2011 Originally published on txcowboycoder wordpress site

EOF/Footnotes