diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/network/site-new.php --- a/wp/wp-admin/network/site-new.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/network/site-new.php Fri Sep 05 18:40:08 2025 +0200 @@ -29,8 +29,8 @@ get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Site Management' ) . '

' . - '

' . __( 'Support Forums' ) . '

' + '

' . __( 'Documentation on Site Management' ) . '

' . + '

' . __( 'Support forums' ) . '

' ); if ( isset( $_REQUEST['action'] ) && 'add-site' === $_REQUEST['action'] ) { @@ -83,6 +83,10 @@ } } + if ( empty( $title ) ) { + wp_die( __( 'Missing site title.' ) ); + } + if ( empty( $domain ) ) { wp_die( __( 'Missing or invalid site address.' ) ); } @@ -188,25 +192,30 @@

'success', + 'dismissible' => true, + 'id' => 'message', + ); + foreach ( $messages as $msg ) { - echo '

' . $msg . '

'; + wp_admin_notice( $msg, $notice_args ); } } ?> -

-*' -); -?> -

+

- + - + - +