Make WordPress Core

Changeset 12906


Ignore:
Timestamp:
01/31/2010 11:11:45 AM (16 years ago)
Author:
dd32
Message:

Check for existence of the query var before switch(). Fixes a notice on Multisite users page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r12789 r12906  
    114114require_once ('admin-header.php');
    115115
    116 if ( is_multisite() ) {
    117     switch( $_GET[ 'update' ] ) {
     116if ( isset($_GET[ 'update' ]) && is_multisite() ) {
     117    switch ( $_GET[ 'update' ] ) {
    118118        case "newuserconfimation":
    119119            $messages[] = '<div id="message" class="updated fade"><p>' . __('Invitation email sent to new user. A confirmation link must be clicked before their account is created.') . '</p></div>';
Note: See TracChangeset for help on using the changeset viewer.