WordPress.org

Make WordPress Core

Ticket #10144: smilies-preg_quote-the-rest.diff

File smilies-preg_quote-the-rest.diff, 397 bytes (added by jdub, 6 years ago)
  • wp-includes/functions.php

     
    26822682                } else { 
    26832683                        $wp_smiliessearch .= '|'; 
    26842684                } 
    2685                 $wp_smiliessearch .= preg_quote($rest); 
     2685                $wp_smiliessearch .= preg_quote($rest, '/'); 
    26862686        } 
    26872687 
    26882688        $wp_smiliessearch .= ')(?:\s|$)/m';