Make WordPress Core


Ignore:
Timestamp:
04/20/2015 04:14:32 AM (9 years ago)
Author:
nacin
Message:

Clean up wp_staticize_emoji() and friends.

  • DOMDocument was removed in [31752] but not the check.
  • wp_staticize_emoji() has never accepted a second arg; remove it from calls.
  • Remove wp_staticize_emoji_for_feeds(), no need for it.
  • Remove _ and @ignore from wp_staticize_emoji_for_email(), no need for it.

see #31242.

File:
1 edited

Legend:

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

    r31879 r32161  
    161161add_filter( 'the_title_rss',      'esc_html'                      );
    162162add_filter( 'the_content_rss',    'ent2ncr',                    8 );
    163 add_filter( 'the_content_feed',   '_wp_staticize_emoji_for_feeds' );
     163add_filter( 'the_content_feed',   'wp_staticize_emoji'            );
    164164add_filter( 'the_excerpt_rss',    'convert_chars'                 );
    165165add_filter( 'the_excerpt_rss',    'ent2ncr',                    8 );
     
    167167add_filter( 'comment_text_rss',   'ent2ncr',                    8 );
    168168add_filter( 'comment_text_rss',   'esc_html'                      );
    169 add_filter( 'comment_text_rss',   '_wp_staticize_emoji_for_feeds' );
     169add_filter( 'comment_text_rss',   'wp_staticize_emoji'            );
    170170add_filter( 'bloginfo_rss',       'ent2ncr',                    8 );
    171171add_filter( 'the_author',         'ent2ncr',                    8 );
     
    173173
    174174// Email filters
    175 add_filter( 'wp_mail', '_wp_staticize_emoji_for_email' );
     175add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    176176
    177177// Misc filters
Note: See TracChangeset for help on using the changeset viewer.