Jun 192009
 

Testing smilies.

I think I got it fixed – the problem is that “/” is used as delimiter of regular expression, and if “/” is part of a smiley’s pattern, the whole thing is broken.

So I’m defining a delimiter variable in wp-includes/functions.php, in function smilies_init(), and use a character that can never be used (well, sort of) – I’m using “\001” for now. Then replace all occurrences of “/” with $delimiter while composing $wp_smiliessearch, and that’s it.

Only open issue, which I don’t think it is related, is that two continuous #:-s will have only one shows up, still debugging …

:@) :@) =P~ =P~ =p~ =p~ >:P >:P >:p >:p
:-/ :-/ @-) @-) :-" :-“ %-( %-( [-X [-X
[-x [-x :-@ :-@ :D ๐Ÿ˜€ :d :d :-D ๐Ÿ˜€
:-d :-d :| ๐Ÿ˜ :-| ๐Ÿ˜ =)) =)) ;;) ;;)
I-) I-) i-) i-) :* :* :-* :-* :"> :”>
:-& :-& :)] :)] :-SS :-SS :-ss :-ss :-sS :-sS
:-Ss :-Ss ~O) ~O) ~o) ~o) **== **== @};- @};-
:-< :-< >:) >:) [-O< [-O< [-o< [-o< b-( b-(
B-( B-( :^o :^o :^O :^O ;)) ;)) :-w :-w
:-W :-W :-S :-S :-s :-s :-j :-j :-J :-J
:-t :-t :-T :-T >:D< >:D< >:d< >:d< (%) (%)
O:) O:) o:) o:) O:-) O:-) o:-) o:-) L-) L-)
l-) l-) %%- %%- :)) :)) :-)) :-)) :O :O
:o ๐Ÿ˜ฎ :-O :-O :-o ๐Ÿ˜ฎ o=> o=> O=> O=>
:) ๐Ÿ™‚ :-) ๐Ÿ™‚ :-B :-B :-b :-b (~~) (~~)
^:)^ ^:)^ =; =; :-L :-L :-l :-l :> :>
:-> :-> B-) B-) b-) b-) :-c :-c :-C :-C
:-? ๐Ÿ˜• (*) (*) <):) <):) =(( =(( :-h :-h
:-H :-H >:/ >:/ =:) =:) :o3 :o3 :O3 :O3
8-> 8-> :-?? :-?? ~:> ~:> [-( [-( :O) :O)
:o) :o) /:) /:) #:-s #:-s #:-S #:-S 8-| 8-|
8-} 8-} :P ๐Ÿ˜› :p :p :-P ๐Ÿ˜› :-p :-p
(:| (:| =D> =D> =d> =d> :(( :(( :-(( :-((
:( ๐Ÿ™ :-( ๐Ÿ™ :)>- :)>- \:D/ \:D/ \:d/ \:d/
3:-O 3:-O 3:-o 3:-o >-) >-) 8-X 8-X 8-x 8-x
:-$ :-$ $-) $-) :(|) :(|) ;) ๐Ÿ˜‰ ;-) ๐Ÿ˜‰
<:-P <:-P <:-p <:-p :x ๐Ÿ˜ก :X :X :-x ๐Ÿ˜ก
:-X :-X X( X( x( x( X-( X-( x-( x-(
o-> o-> O-> O-> *-:) *-:) ~X( ~X( ~x( ~x(
#-o #-o o-+ o-+ O-+ O-+        

Sorry, the comment form is closed at this time.