Making WordPress.org

Changeset 2488


Ignore:
Timestamp:
02/09/2016 04:09:35 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Add WordCamp name to subject of reimbursement note e-mails.

This helps deputies quickly recognize which camp a notification is for.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php

    r2410 r2488  
    574574    if ( $note_author->has_cap( 'manage_network' ) ) {
    575575        $to = \WordCamp_Budgets::get_requester_formatted_email( $request->post_author );
     576        $subject_prefix = sprintf( '[%s] ', get_wordcamp_name() );
    576577    } else {
    577578        $to = 'support@wordcamp.org';
     579        $subject_prefix = '';
    578580    }
    579581
     
    582584    }
    583585
    584     $subject          = 'New note on ' . sanitize_text_field( $request->post_title );
     586    $subject          = sprintf( '%sNew note on `%s`', $subject_prefix, sanitize_text_field( $request->post_title ) );
    585587    $note_author_name = \WordCamp_Budgets::get_requester_name( $note['author_id'] );
    586588    $request_url      = admin_url( sprintf( 'post.php?post=%s&action=edit', $request->ID ) );
Note: See TracChangeset for help on using the changeset viewer.