Make WordPress Core

Changeset 10514


Ignore:
Timestamp:
02/06/2009 03:42:48 AM (15 years ago)
Author:
azaozz
Message:

Require smilies to be surrounded by spaces or be at the beginning or end of the line, see #6464

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r10512 r10514  
    25112511        if ($firstchar != $subchar) {
    25122512            if ($subchar != '') {
    2513                 $wp_smiliessearch .= ')|';
     2513                $wp_smiliessearch .= ')|(?:\s|^)';
    25142514            }
    25152515            $subchar = $firstchar;
     
    25212521    }
    25222522
    2523     $wp_smiliessearch .= ')(?:\s|$)/';
     2523    $wp_smiliessearch .= ')(?:\s|$)/m';
    25242524}
    25252525
Note: See TracChangeset for help on using the changeset viewer.