WordPress.org

Make WordPress Core

Changeset 16527


Ignore:
Timestamp:
11/21/10 16:56:08 (4 years ago)
Author:
ryan
Message:

Notice fixes for user-new.php. Props wpdavis. see #15456

File:
1 edited

Legend:

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

    r16518 r16527  
    1616    function admin_created_user_email( $text ) { 
    1717        /* translators: 1: Site name, 2: site URL, 3: role */ 
    18         return sprintf( __( "Hi, 
    19 You've been invited to join '%1$s' at 
     18        return sprintf( __( 'Hi, 
     19You\'ve been invited to join \'%1$s\' at 
    2020%2$s as a %3$s. 
    2121If you do not want to join this site please ignore 
     
    2323 
    2424Please click the following link to activate your user account: 
    25 %%s" ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) ); 
     25%%s' ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) ); 
    2626    } 
    2727    add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); 
     
    109109            } 
    110110            wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); 
    111             if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 
     111            if ( isset( $_POST[ 'adduser' ] ) && isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 
    112112                $key = $wpdb->get_var( $wpdb->prepare( "SELECT activation_key FROM {$wpdb->signups} WHERE user_login = %s AND user_email = %s", $new_user_login, $_REQUEST[ 'email' ] ) ); 
    113113                wpmu_activate_signup( $key ); 
Note: See TracChangeset for help on using the changeset viewer.