WordPress.org

Make WordPress Core

Ticket #25303: regex.patch

File regex.patch, 358 bytes (added by yonasy, 8 years ago)
  • wp-includes/functions.php

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 8cd4af4..59acd5a 100644
    a b function smilies_init() { 
    25852585                $wp_smiliessearch .= preg_quote($rest, '/');
    25862586        }
    25872587
    2588         $wp_smiliessearch .= ')(?:\s|$)/m';
     2588        $wp_smiliessearch .= ')|(?:\s|^)(?:\s|$)/m';
    25892589}
    25902590
    25912591/**