Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#19920 closed defect (bug) (invalid)

Post shortlink box tied to the wrong post type parameter

Reported by: phill_brown Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.3.1
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:


I think the shortlink box that allows users to edit the post slug should be appear when publicly_queryable is true, not the public parameter.

publicly_queryable sets whether a post type can be requested via URI and overrides public if one set to true and the other to false.

Attachments (1)

edit-form-advanced.php.patch (1.2 KB) - added by phill_brown 9 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

publicly_queryable is designed to control the querying of objects of that post type in the general sense, not individually.

It's phpdoc description is: "Whether post_type queries can be performed from the front page. Defaults to whatever public is set as."

So, example.com/?post_type=tweet will filter and show you tweets as long as the tweet post type has publicly_queryable = true.

Notably, pages are set to false, which means that ?post_type=page will not get you a list of pages.

This played out in #17040.

Note: See TracTickets for help on using tickets.