WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 4 months ago

Last modified 4 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
Cc:

Change History (3)

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

In 9369:

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

See #4647.

Note: See TracTickets for help on using tickets.