[wp-trac] [WordPress Trac] #19744: Custom post types doesn't receive pingbacks - url_to_postid() doesn't recognize CPT

WordPress Trac noreply at wordpress.org
Wed Oct 2 19:41:21 UTC 2013


#19744: Custom post types doesn't receive pingbacks - url_to_postid() doesn't
recognize CPT
-----------------------------+-----------------------------
 Reporter:  feedmeastraycat  |       Owner:  wonderboymusic
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  3.7
Component:  Query            |     Version:  3.3.1
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |
-----------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"25659"]:
 {{{
 #!CommitTicketReference repository="" revision="25659"
 Make `url_to_postid()` work for custom post type URLs. Use
 `get_post_types()` and `get_taxonomies()` instead of directly accessing
 globals. Adds unit test.

 Props faishal, for the globals fix.
 Fixes #19744.
 }}}

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


More information about the wp-trac mailing list