Changeset 1404

Show
Ignore:
Timestamp:
07/28/08 16:28:11 (4 months ago)
Author:
donncha
Message:

Remove slashes from title when emailing admin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/wpmu-edit.php

    r1390 r1404  
    130130                        if( get_user_option( $user_id, 'primary_blog' ) == 1 ) 
    131131                                update_user_option( $user_id, 'primary_blog', $id, true ); 
    132                         $content_mail = sprintf( __( "New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, $title ); 
     132                        $content_mail = sprintf( __( "New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, stripslashes( $title ) ); 
    133133                        wp_mail( get_site_option('admin_email'),  sprintf(__('[%s] New Blog Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); 
    134134                        wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'add-blog'), $_SERVER['HTTP_REFERER'] ) );