WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 6 weeks ago

#46054 closed defect (bug) (fixed)

wp_die handlers should return no-cache headers.

Reported by: spacedmonkey Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.1
Component: Bootstrap/Load Keywords: has-patch servehappy
Focuses: Cc:

Description

All wp_die handlers should return no cache headers to make sure that no error state is cached.

Attachments (1)

46054.diff (1.2 KB) - added by spacedmonkey 3 months ago.

Download all attachments as: .zip

Change History (9)

@spacedmonkey
3 months ago

#2 @pento
3 months ago

  • Milestone changed from Awaiting Review to 5.1

Moving to 5.1 for review.

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


3 months ago

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


3 months ago

#5 @flixos90
3 months ago

  • Milestone changed from 5.1 to 5.2

#6 @flixos90
3 months ago

  • Priority changed from high to normal

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


2 months ago

#8 @SergeyBiryukov
6 weeks ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 44828:

Bootstrap/Load: Add nocache_headers() to all wp_die() handlers.

Props spacedmonkey.
Fixes #46054.

Note: See TracTickets for help on using tickets.