From 3b863ae17371ba0f6e3395876ac1e4aafacc88b3 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 23 Mar 2015 12:08:26 +0000 Subject: [PATCH] Emoji: Gmail doesn't obey an ``'s inline CSS `height` rule, transforming it to `min-height`. To avoid giant smiley faces everywhere, we're changing the `height` rule to `max-height`, which Gmail plays nicer with. Props janhenckens. Fixes #31719. Built from https://develop.svn.wordpress.org/trunk@31864 git-svn-id: http://core.svn.wordpress.org/trunk@31843 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 0377bbdd54..f14ef866db 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2109,7 +2109,7 @@ function translate_smiley( $matches ) { */ $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); - return sprintf( '%s', esc_url( $src_url ), esc_attr( $smiley ) ); + return sprintf( '%s', esc_url( $src_url ), esc_attr( $smiley ) ); } /** @@ -4200,7 +4200,7 @@ function wp_staticize_emoji( $text ) { $chars = str_replace( array( '&#x', ';'), '', $flag ); list( $char1, $char2 ) = str_split( $chars, 5 ); - $entity = ''; + $entity = ''; $content = str_replace( $flag, $entity, $content ); } @@ -4215,7 +4215,7 @@ function wp_staticize_emoji( $text ) { if ( ! empty( $matches[1] ) ) { foreach ( $matches[1] as $emoji ) { $char = str_replace( array( '&#x', ';'), '', $emoji ); - $entity = ''; + $entity = ''; $content = str_replace( $emoji, $entity, $content ); }