From bfb999054836c6a409ca3c027af4223342ca2234 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 27 Mar 2015 02:12:28 +0000 Subject: [PATCH] Emoji: [31864] changed emoji image's inline style from `height` to `max-height`. Unfortunately, anything using `feedparser.py` (for example, NewsBlur) strips out `max-height`, which gives us massive emoji in feeds. This re-adds `height`, and also reminds us why we can't have nice things. See #31719. Built from https://develop.svn.wordpress.org/trunk@31909 git-svn-id: http://core.svn.wordpress.org/trunk@31888 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 2797741bb2..6963e2280f 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 ) ); } /** @@ -4275,7 +4275,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 ); } @@ -4290,7 +4290,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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9cb37a93a6..944469faef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta3-31908'; +$wp_version = '4.2-beta3-31909'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.