[wp-trac] [WordPress Trac] #35609: is_post_type_viewable should allow string to be passed.

WordPress Trac noreply at wordpress.org
Tue Jan 26 02:36:34 UTC 2016


#35609: is_post_type_viewable should allow string to be passed.
-------------------------------+---------------------------
 Reporter:  spacedmonkey       |       Owner:  boonebgorges
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.5
Component:  Posts, Post Types  |     Version:  4.4
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36402"]:
 {{{
 #!CommitTicketReference repository="" revision="36402"
 Allow `is_post_type_viewable()` to accept a post type name.

 Previously, it accepted only a post type object.

 Props spacedmonkey.
 Fixes #35609.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35609#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list