[wp-trac] [WordPress Trac] #17609: 'View post' link shown even when post type can't be viewed on the front-end

WordPress Trac noreply at wordpress.org
Wed Jun 19 15:43:52 UTC 2013


#17609: 'View post' link shown even when post type can't be viewed on the front-end
--------------------------+------------------------------
 Reporter:  scribu        |       Owner:  nacin
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by jfarthing84):

 * cc: jeff@… (added)


Comment:

 Maybe I'm missing something, but this is a pretty simply fix of just
 checking {{{publicly_queryable}}} instead of {{{public}}}.

 This also applies to a ticket I was going to create, but is actually
 closely related with this. That is, a '''View''' link is shown on the
 ''edit.php'' page even when a post type is not {{{publicly_queryable}}},
 because yet again, the code checks {{{public}}} instead.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/17609#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list