#16448 closed enhancement (fixed)
Smilies should not be placed inside of pre or code tags
Reported by: | Viper007Bond | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Formatting | Keywords: | has-patch needs-testing needs-refresh needs-unit-tests |
Focuses: | Cc: |
Description
Smilies should ignore content inside of <pre>
and <code>
tags. The author likely is posting code and doesn't need smilies messing it up.
Attachments (1)
Change History (15)
#2
follow-up:
↓ 3
@
14 years ago
We'll need to make sure to run any patch through unit tests of course BTW. Gotta make sure it's not significantly slower, etc.
#3
in reply to:
↑ 2
@
14 years ago
Replying to Viper007Bond:
We'll need to make sure to run any patch through unit tests of course BTW. Gotta make sure it's not significantly slower, etc.
Indeed, unfortunately we don't have any similes tests yet - http://unit-tests.trac.wordpress.org/browser/wp-testcase/test_includes_formatting.php
Anyone fancy writing some ;)
#4
follow-up:
↓ 6
@
13 years ago
See http://gsoc.svn.wordpress.org/2011/jakub.tyrcha for unit tests testing this and a few more things
#6
in reply to:
↑ 4
@
13 years ago
Replying to jakub.tyrcha:
See http://gsoc.svn.wordpress.org/2011/jakub.tyrcha for unit tests testing this and a few more things
Please could you create a ticket in the unit-tests trac and attach the patch there too.
#10
@
11 years ago
- Keywords needs-unit-tests added
Needs unit tests. In here: http://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/formatting/Smilies.php.
Don't mess with smilies in code and pre blocks