Making WordPress.org

Ticket #3259: 3259.diff

File 3259.diff, 671 bytes (added by casiepa, 7 years ago)

Remove brackets in the subject

  • wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    diff --git wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php
    index 93573ede..b2abb07a 100644
    add_action( 'init', 'wcorg_show_tagregator_log' ); 
    135136 * @return string
    136137 */
    137138function wcorg_grunion_unique_subject( $subject ) {
    138         return sprintf( '[%s] %s', wp_generate_password( 8, false ), $subject );
     139        return sprintf( '%s - %s', $subject, wp_generate_password( 8, false ) );
    139140}
    140141add_filter( 'contact_form_subject', 'wcorg_grunion_unique_subject' );