[wp-trac] [WordPress Trac] #20098: Non-publicly queryable posts should not allow preview

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 22 14:28:49 UTC 2012


#20098: Non-publicly queryable posts should not allow preview
--------------------------+-----------------------------
 Reporter:  tamlyn        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Custom post types which have publicly_queryable=false but show_ui=true
 should not show a preview button in the admin. Similarly, the slug editor
 should also be hidden and the 'View post' link should not be displayed in
 the published message.

 Looking at the core code, it seems to be a simple matter of updating it to
 look at the publicly_queryable property instead of the public meta
 property.

 If approved, I can have a go at creating a patch.

 In the meantime, attached is a bit of PHP which modifies the output buffer
 to achieve the same result.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20098>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list