Make WordPress Core

Changeset 31791


Ignore:
Timestamp:
03/16/2015 10:45:29 AM (10 years ago)
Author:
pento
Message:

Emoji: Rename the email and feed filter functions to be _ prefixed, and @ignore-d in the PHPDocs.

See #31242

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r31786 r31791  
    157157
    158158// 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'         );
     159add_filter( 'the_title_rss',      'strip_tags'                    );
     160add_filter( 'the_title_rss',      'ent2ncr',                    8 );
     161add_filter( 'the_title_rss',      'esc_html'                      );
     162add_filter( 'the_content_rss',    'ent2ncr',                    8 );
     163add_filter( 'the_content_feed',   '_wp_staticize_emoji_for_feeds' );
     164add_filter( 'the_excerpt_rss',    'convert_chars'                 );
     165add_filter( 'the_excerpt_rss',    'ent2ncr',                    8 );
     166add_filter( 'comment_author_rss', 'ent2ncr',                    8 );
     167add_filter( 'comment_text_rss',   'ent2ncr',                    8 );
     168add_filter( 'comment_text_rss',   'esc_html'                      );
     169add_filter( 'comment_text_rss',   '_wp_staticize_emoji_for_feeds' );
     170add_filter( 'bloginfo_rss',       'ent2ncr',                    8 );
     171add_filter( 'the_author',         'ent2ncr',                    8 );
     172add_filter( 'the_guid',           'esc_url'                       );
    173173
    174174// Email filters
    175 add_filter( 'wp_mail', 'mail_emoji' );
     175add_filter( 'wp_mail', '_wp_staticize_emoji_for_email' );
    176176
    177177// Misc filters
  • trunk/src/wp-includes/feed.php

    r31733 r31791  
    654654 * Convert emoji characters in a feed into static images.
    655655 *
     656 * @ignore
     657 * @since 4.2.0
     658 *
    656659 * @param string $content The content to convert.
    657  *
    658660 * @return The converted content.
    659661 */
    660 function feed_emoji( $content ) {
     662function _wp_staticize_emoji_for_feeds( $content ) {
    661663    return wp_staticize_emoji( $content, true );
    662664}
  • trunk/src/wp-includes/formatting.php

    r31790 r31791  
    41934193 * Convert emoji in emails into static images.
    41944194 *
     4195 * @ignore
    41954196 * @since 4.2.0
    41964197 *
     
    41984199 * @return array The email data array, with emoji in the message staticized.
    41994200 */
    4200 function mail_emoji( $mail ) {
     4201function _wp_staticize_emoji_for_email( $mail ) {
    42014202    $mail['message'] = wp_staticize_emoji( $mail['message'], true );
    42024203    return $mail;
Note: See TracChangeset for help on using the changeset viewer.