Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#4647 closed defect (bug) (fixed)

Empty post_type[] results should return a 404 status

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: coffee2code's profile coffee2code
Milestone: Priority: lowest
Component: Developer Hub Keywords: seo analytics

Change History (3)

#1 @coffee2code
4 years ago

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

In 9316:

Developer: 404 any attempts to filter by invalid post type.

Props jonoaldersonwp, coffee2code.
Fixes #4647.

#2 @dd32
4 years ago

FWIW This should probably be fixed in core too, since it looks like redirect_canonical handles regular urls such as

#3 @dd32
4 years ago

In 9369:

Developer: Avoid a PHP Warning on ?post_type= requests.

See #4647.

Note: See TracTickets for help on using tickets.