Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#13301 closed enhancement (fixed)

Improvements to UI for custom post types that are not publicy queryable

Reported by: johnbillion Owned by: nacin
Milestone: 3.2 Priority: normal
Severity: minor Version: 3.0
Component: Posts, Post Types Keywords: has-patch needs-refresh
Focuses: Cc:


When you register a custom post type with the 'publicly_queryable' parameter set to false, links in the UI to view the post should not be shown.

Patch coming up.

Attachments (1)

13301.patch (3.5 KB) - added by johnbillion 10 years ago.

Download all attachments as: .zip

Change History (11)

10 years ago

#1 @johnbillion
10 years ago


Patch looks substantial in the diff viewer but all it's doing is wrapping that block in a check for $post_type_object->publicly_queryable.

#2 @johnbillion
10 years ago

  • Keywords has-patch added

#3 @kevinB
10 years ago

  • Cc kevinB added

#4 @nacin
10 years ago

  • Milestone changed from Awaiting Review to 3.1

Ah ha. I knew this ticket existed. A few more areas are patched in #14827, but they should be publicly_queryable.

#5 @markjaquith
10 years ago

  • Keywords 3.2-early added
  • Milestone changed from 3.1 to Future Release

#6 @johnbillion
9 years ago

Any reason this was bumped? It's a trivial patch. I'll refresh if necessary.

#7 @scribu
9 years ago

  • Keywords needs-refresh added; 3.2-early removed
  • Milestone changed from Future Release to 3.2

Small enough patch and will probably be even smaller after refresh.

#8 @jane
9 years ago

  • Milestone changed from 3.2 to Future Release

No refreshed patch before freeze, punting.

#9 @nacin
9 years ago

  • Milestone changed from Future Release to 3.2

This is actually a bug, and a straightforward change, so handling this.

#10 @nacin
9 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [17899]:

Don't show broken 'View' links when a CPT isn't publicly queryable. fixes #13301, props johnbillion.

Note: See TracTickets for help on using tickets.