Make WordPress Core

Changeset 61753


Ignore:
Timestamp:
02/26/2026 10:55:38 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/network.php

    r60096 r61753  
    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';
Note: See TracChangeset for help on using the changeset viewer.