Changeset 31861
- Timestamp:
- 03/23/2015 02:10:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r31860 r31861 4165 4165 4166 4166 /** This filter is documented in wp-includes/script-loader.php */ 4167 $cdn_url = apply_filters( 'emoji_url', '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72/');4167 $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72/' ) ); 4168 4168 4169 4169 /** This filter is documented in wp-includes/script-loader.php */ … … 4201 4201 4202 4202 list( $char1, $char2 ) = str_split( $chars, 5 ); 4203 $entity = '<img src=" https:' . $cdn_url . $char1 . '-' . $char2 . $ext . '" class="wp-smiley" style="height: 1em;" />';4203 $entity = '<img src="' . $cdn_url . $char1 . '-' . $char2 . $ext . '" class="wp-smiley" style="height: 1em;" />'; 4204 4204 4205 4205 $content = str_replace( $flag, $entity, $content ); … … 4216 4216 foreach ( $matches[1] as $emoji ) { 4217 4217 $char = str_replace( array( '&#x', ';'), '', $emoji ); 4218 $entity = '<img src=" https:' . $cdn_url . $char . $ext . '" class="wp-smiley" style="height: 1em;" />';4218 $entity = '<img src="' . $cdn_url . $char . $ext . '" class="wp-smiley" style="height: 1em;" />'; 4219 4219 4220 4220 $content = str_replace( $emoji, $entity, $content );
Note: See TracChangeset
for help on using the changeset viewer.