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/formatting.php

    r32097 r32161  
    42374237    $text = wp_encode_emoji( $text );
    42384238
    4239     if ( ! class_exists( 'DOMDocument' ) ) {
    4240         return $text;
    4241     }
    4242 
    42434239    /** This filter is documented in wp-includes/formatting.php */
    42444240    $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) );
     
    43154311 * Convert emoji in emails into static images.
    43164312 *
    4317  * @ignore
    43184313 * @since 4.2.0
    43194314 *
     
    43214316 * @return array The email data array, with emoji in the message staticized.
    43224317 */
    4323 function _wp_staticize_emoji_for_email( $mail ) {
     4318function wp_staticize_emoji_for_email( $mail ) {
    43244319    if ( ! isset( $mail['message'] ) ) {
    43254320        return $mail;
     
    43744369
    43754370    if ( 'text/html' === $content_type ) {
    4376         $mail['message'] = wp_staticize_emoji( $mail['message'], true );
     4371        $mail['message'] = wp_staticize_emoji( $mail['message'] );
    43774372    }
    43784373
Note: See TracChangeset for help on using the changeset viewer.