WordPress.org

Make WordPress Core

Ticket #43968: 43968-without-filter.diff

File 43968-without-filter.diff, 869 bytes (added by desrosj, 2 years ago)

Add request type to email subject (without filter)

  • src/wp-includes/user.php

     
    31413141        $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content );
    31423142        $content = str_replace( '###SITEURL###', esc_url_raw( $email_data['siteurl'] ), $content );
    31433143
    3144         /* translators: %s Site name. */
    3145         return wp_mail( $email_data['email'], sprintf( __( '[%s] Confirm Action' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content );
     3144        /* translators: 1 Site name 2: Request type */
     3145        return wp_mail( $email_data['email'], sprintf( __( '[%1$s] Confirm Action: %2$s' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $email_data['description'] ), $content );
    31463146}
    31473147
    31483148/**