Making WordPress.org

Opened 2 years ago

Closed 23 months ago

Last modified 22 months ago

#4647 closed defect (fixed)

Empty developer.wordpress.org post_type[] results should return a 404 status

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

Change History (3)

#1 @coffee2code
23 months 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
22 months ago

FWIW This should probably be fixed in core too, since it looks like redirect_canonical handles regular urls such as https://developer.wordpress.org/?post_type=cats

#3 @dd32
22 months ago

In 9369:

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

See #4647.

Note: See TracTickets for help on using tickets.