Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15799 closed defect (bug) (fixed)

Deactivated Sites on MultiSite give 500 header

Reported by: Madtownlems Owned by:
Priority: normal Milestone: 3.1
Component: Multisite Version:
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

On a MultiSite network, users and admins can deactivate sites. When a non-logged in user tries to view the site, they get this message:
This user has elected to delete their account and the content is no longer available.

However, the server's response is 500 (Internal Server Error)

I'm not 100% sure what it SHOULD respond (possibly 404?) but 500 seems quite wrong.

Attachments (2)

15799.diff​ (1.1 KB ) - added by nacin 16 years ago.
15799.2.diff​ (2.0 KB ) - added by nacin 16 years ago.

Download all attachments as: .zip

Change History (7)

#1 @PeteMall
16 years ago

What about 410?

@nacin
16 years ago

#2 @nacin
16 years ago

  • Milestone Awaiting Review → 3.1

Patch sends 410 through wp_die().

I think we can also kill the WP_I18N. We moved ms_site_check() to the end of wp-settings.php, so we should have the network-wide locale at our disposal now.

@nacin
16 years ago

#3 @nacin
16 years ago

  • Keywords has-patch added

Second patch kills WP_I18N and removes some braces.

#4 @PeteMall
16 years ago

  • Keywords commit added

Patch does the trick... HTTP/1.1 410 Gone is returned for archived, spam or deleted sites.

#5 @PeteMall
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [16906]) Ensure correct HTTP status code is returned. Props nacin, fixes #15799

Note: See TracTickets for help on using tickets.