WordPress.org

Make WordPress Core

Changeset 31514


Ignore:
Timestamp:
02/22/2015 10:29:19 PM (7 years ago)
Author:
jeremyfelt
Message:

Use response code 200 when an existing network user joins a site via invitation.

Pass a response code of 200 to wp_die() when a user is successfully added to an individual site after using the /newbloguser/ URL from an invite email. This is a user facing success message.

Props MikeHansenMe.

Fixes #31224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r31403 r31514  
    19351935        wp_die( sprintf(__('An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.'), home_url() ) );
    19361936
    1937     wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress &rsaquo; Success' ) );
     1937    wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress &rsaquo; Success' ), array( 'response' => 200 ) );
    19381938}
    19391939
Note: See TracChangeset for help on using the changeset viewer.