Changeset 32161
- Timestamp:
- 04/20/2015 04:14:32 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r31879 r32161 161 161 add_filter( 'the_title_rss', 'esc_html' ); 162 162 add_filter( 'the_content_rss', 'ent2ncr', 8 ); 163 add_filter( 'the_content_feed', ' _wp_staticize_emoji_for_feeds');163 add_filter( 'the_content_feed', 'wp_staticize_emoji' ); 164 164 add_filter( 'the_excerpt_rss', 'convert_chars' ); 165 165 add_filter( 'the_excerpt_rss', 'ent2ncr', 8 ); … … 167 167 add_filter( 'comment_text_rss', 'ent2ncr', 8 ); 168 168 add_filter( 'comment_text_rss', 'esc_html' ); 169 add_filter( 'comment_text_rss', ' _wp_staticize_emoji_for_feeds');169 add_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 170 170 add_filter( 'bloginfo_rss', 'ent2ncr', 8 ); 171 171 add_filter( 'the_author', 'ent2ncr', 8 ); … … 173 173 174 174 // Email filters 175 add_filter( 'wp_mail', ' _wp_staticize_emoji_for_email' );175 add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 176 176 177 177 // Misc filters -
trunk/src/wp-includes/feed.php
r31791 r32161 650 650 return $feed; 651 651 } 652 653 /**654 * Convert emoji characters in a feed into static images.655 *656 * @ignore657 * @since 4.2.0658 *659 * @param string $content The content to convert.660 * @return The converted content.661 */662 function _wp_staticize_emoji_for_feeds( $content ) {663 return wp_staticize_emoji( $content, true );664 } -
trunk/src/wp-includes/formatting.php
r32097 r32161 4237 4237 $text = wp_encode_emoji( $text ); 4238 4238 4239 if ( ! class_exists( 'DOMDocument' ) ) {4240 return $text;4241 }4242 4243 4239 /** This filter is documented in wp-includes/formatting.php */ 4244 4240 $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ); … … 4315 4311 * Convert emoji in emails into static images. 4316 4312 * 4317 * @ignore4318 4313 * @since 4.2.0 4319 4314 * … … 4321 4316 * @return array The email data array, with emoji in the message staticized. 4322 4317 */ 4323 function _wp_staticize_emoji_for_email( $mail ) {4318 function wp_staticize_emoji_for_email( $mail ) { 4324 4319 if ( ! isset( $mail['message'] ) ) { 4325 4320 return $mail; … … 4374 4369 4375 4370 if ( 'text/html' === $content_type ) { 4376 $mail['message'] = wp_staticize_emoji( $mail['message'] , true);4371 $mail['message'] = wp_staticize_emoji( $mail['message'] ); 4377 4372 } 4378 4373
Note: See TracChangeset
for help on using the changeset viewer.