Making WordPress.org

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4647 closed defect (bug) (fixed)

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

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

Description

Change History (3)

#1 @coffee2code
7 years ago

  • Owner set to coffee2code
  • Resolution → fixed
  • Status new → closed

In 9316:

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

Props jonoaldersonwp, coffee2code.
Fixes #4647.

#2 @dd32
7 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
7 years ago

In 9369:

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

See #4647.

Note: See TracTickets for help on using tickets.