Opened 3 years ago

Closed 2 years ago

#13301 closed enhancement (fixed)

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

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

Description

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 3 years ago.

Download all attachments as: .zip

Change History (11)

Patch.

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.

  • Keywords has-patch added
  • Cc kevinB added
  • 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.

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

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

  • 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.

comment:8   jane2 years ago

  • Milestone changed from 3.2 to Future Release

No refreshed patch before freeze, punting.

  • Milestone changed from Future Release to 3.2

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

  • 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.