Changeset 31791
- Timestamp:
- 03/16/2015 10:45:29 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r31786 r31791 157 157 158 158 // RSS filters 159 add_filter( 'the_title_rss', 'strip_tags' );160 add_filter( 'the_title_rss', 'ent2ncr', 8 );161 add_filter( 'the_title_rss', 'esc_html' );162 add_filter( 'the_content_rss', 'ent2ncr', 8 );163 add_filter( 'the_content_feed', ' feed_emoji');164 add_filter( 'the_excerpt_rss', 'convert_chars' );165 add_filter( 'the_excerpt_rss', 'ent2ncr', 8 );166 add_filter( 'comment_author_rss', 'ent2ncr', 8 );167 add_filter( 'comment_text_rss', 'ent2ncr', 8 );168 add_filter( 'comment_text_rss', 'esc_html' );169 add_filter( 'comment_text_rss', ' feed_emoji');170 add_filter( 'bloginfo_rss', 'ent2ncr', 8 );171 add_filter( 'the_author', 'ent2ncr', 8 );172 add_filter( 'the_guid', 'esc_url' );159 add_filter( 'the_title_rss', 'strip_tags' ); 160 add_filter( 'the_title_rss', 'ent2ncr', 8 ); 161 add_filter( 'the_title_rss', 'esc_html' ); 162 add_filter( 'the_content_rss', 'ent2ncr', 8 ); 163 add_filter( 'the_content_feed', '_wp_staticize_emoji_for_feeds' ); 164 add_filter( 'the_excerpt_rss', 'convert_chars' ); 165 add_filter( 'the_excerpt_rss', 'ent2ncr', 8 ); 166 add_filter( 'comment_author_rss', 'ent2ncr', 8 ); 167 add_filter( 'comment_text_rss', 'ent2ncr', 8 ); 168 add_filter( 'comment_text_rss', 'esc_html' ); 169 add_filter( 'comment_text_rss', '_wp_staticize_emoji_for_feeds' ); 170 add_filter( 'bloginfo_rss', 'ent2ncr', 8 ); 171 add_filter( 'the_author', 'ent2ncr', 8 ); 172 add_filter( 'the_guid', 'esc_url' ); 173 173 174 174 // Email filters 175 add_filter( 'wp_mail', ' mail_emoji' );175 add_filter( 'wp_mail', '_wp_staticize_emoji_for_email' ); 176 176 177 177 // Misc filters -
trunk/src/wp-includes/feed.php
r31733 r31791 654 654 * Convert emoji characters in a feed into static images. 655 655 * 656 * @ignore 657 * @since 4.2.0 658 * 656 659 * @param string $content The content to convert. 657 *658 660 * @return The converted content. 659 661 */ 660 function feed_emoji( $content ) {662 function _wp_staticize_emoji_for_feeds( $content ) { 661 663 return wp_staticize_emoji( $content, true ); 662 664 } -
trunk/src/wp-includes/formatting.php
r31790 r31791 4193 4193 * Convert emoji in emails into static images. 4194 4194 * 4195 * @ignore 4195 4196 * @since 4.2.0 4196 4197 * … … 4198 4199 * @return array The email data array, with emoji in the message staticized. 4199 4200 */ 4200 function mail_emoji( $mail ) {4201 function _wp_staticize_emoji_for_email( $mail ) { 4201 4202 $mail['message'] = wp_staticize_emoji( $mail['message'], true ); 4202 4203 return $mail;
Note: See TracChangeset
for help on using the changeset viewer.