Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4647 closed defect (bug) (fixed)

Empty developer.wordpress.org 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
Cc:

Change History (3)

#1 @coffee2code
5 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
5 years 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
5 years ago

In 9369:

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

See #4647.

Note: See TracTickets for help on using tickets.