From 90f9d33c42f88e1445e9af109e8f4d18c8b9e96b Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Jul 2009 18:27:13 +0000 Subject: [PATCH] add smilies_src filter. Props Otto42. see #10145 git-svn-id: http://svn.automattic.com/wordpress/trunk@11738 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 53cfeeae89..22511ad70d 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1317,8 +1317,10 @@ function translate_smiley($smiley) { $smiley = trim(reset($smiley)); $img = $wpsmiliestrans[$smiley]; $smiley_masked = esc_attr($smiley); + + $srcurl = apply_filters('smilies_src', "$siteurl/wp-includes/images/smilies/$img", $img, $siteurl); - return " $smiley_masked "; + return " $smiley_masked "; }