Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#25303 closed defect (bug) (fixed)

Fix regular expression used for smiley translations to work when there is only one registered emoticon.

Reported by: yonasy Owned by: wonderboymusic
Priority: normal Milestone: 3.8
Component: Formatting Version: 3.8
Severity: normal Keywords: has-patch needs-unit-tests
Cc: Focuses:

Description

Without this patch, the string ":) :) :) :)" will not be replaced with four smilies when ":)" is the only emoticon in $wpsmiliestrans from smilies_init(), wp-includes/functions.php.

Attachments (1)

regex.patch​ (358 bytes ) - added by yonasy 13 years ago.

Download all attachments as: .zip

Change History (6)

@yonasy
13 years ago

#2 @nacin
13 years ago

  • Component General → Formatting
  • Keywords has-patch needs-unit-tests added

#3 @mdbitz
13 years ago

  • Cc matt@… added

See Unit Tests and Path in related ticket #20124

#4 @wonderboymusic
13 years ago

  • Owner set to wonderboymusic
  • Resolution → fixed
  • Status new → closed

In 26191:

Don't place smilies inside of pre or code tags. Don't skip smilie after a smilie with an 8 in it. Fix regular expression used for smiley translations to work when there is only one registered emoticon.

Props solarissmoke, soulseekah, mdbitz, yonasy. ht to mdbitz for the Unit Tests and a comprehensive patch.
Fixes #16448, #20124, #25303.

#5 @wonderboymusic
13 years ago

  • Milestone Awaiting Review → 3.8
Note: See TracTickets for help on using tickets.