WordPress.org

Make WordPress Core

Ticket #18088: 18088.patch

File 18088.patch, 496 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-admin/network/settings.php

     
    4444 
    4545        if ( is_email( $_POST['admin_email'] ) ) 
    4646                update_site_option( 'admin_email', $_POST['admin_email'] ); 
     47        else 
     48                wp_die( __( 'Invalid email address.' ) ); 
    4749 
    4850        $illegal_names = split( ' ', $_POST['illegal_names'] ); 
    4951        foreach ( (array) $illegal_names as $name ) {