Skip to content

Commit 33ebdd7

Browse files
Code Quality: Initialize $message and $message_class in network_step1().
This prevents the variables from being undefined when the condition isn't met. Follow-up to [56599]. Props huzaifaalmesbah, noruzzaman. See #64238. git-svn-id: https://develop.svn.wordpress.org/trunk@61753 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f041be2 commit 33ebdd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp-admin/includes/network.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ function network_step1( $errors = false ) {
198198
} else {
199199
$subdomain_install = false;
200200
$got_mod_rewrite = got_mod_rewrite();
201+
$message_class = '';
202+
$message = '';
203+
201204
if ( $got_mod_rewrite ) { // Dangerous assumptions.
202205
$message_class = 'updated';
203206
$message = '<p><strong>' . __( 'Warning:' ) . '</strong> ';

0 commit comments

Comments
 (0)