Skip to content

Commit dded7c7

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. Built from https://develop.svn.wordpress.org/trunk@61753 git-svn-id: http://core.svn.wordpress.org/trunk@61059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent e361790 commit dded7c7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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> ';

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-beta2-61752';
19+
$wp_version = '7.0-beta2-61753';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)