[wp-trac] [WordPress Trac] #37406: Add ability to specify post_type in post_exists function - post.php

WordPress Trac noreply at wordpress.org
Thu Mar 21 12:43:54 UTC 2019


#37406: Add ability to specify post_type in post_exists function - post.php
---------------------------------------------+-------------------------
 Reporter:  sgarza                           |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  low                              |   Milestone:  5.2
Component:  Posts, Post Types                |     Version:  4.5.3
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44959" 44959]:
 {{{
 #!CommitTicketReference repository="" revision="44959"
 Posts, Post Types: Add type parameter to `post_exists()`.

 This allows post exists checks scoped to a specific post type.

 Props sgarza, birgire, swissspidy.
 Fixes #37406.
 }}}

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


More information about the wp-trac mailing list