[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
Sat Mar 30 02:05:58 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:  accepted
 Priority:  normal           |   Milestone:  3.6
Component:  Query            |     Version:  3.3.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 We could probably use `get_post_types()` instead of
 `$GLOBALS['wp_post_types']`.

 Could also create a separate ticket to replace `$GLOBALS['wp_post_types']`
 with `get_post_types()` and `$GLOBALS['wp_taxonomies']` with
 `get_taxonomies()` in `WP::parse_request()` and
 `WP_Query::parse_tax_query()`.

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


More information about the wp-trac mailing list