[wp-trac] [WordPress Trac] #19744: Custom post type doesn't receive pingback
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 5 00:44:46 UTC 2012
#19744: Custom post type doesn't receive pingback
-----------------------------+------------------------------
Reporter: feedmeastraycat | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.3.1
Severity: normal | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by dd32):
The cause is because WP_Query doesn't accept a `CPT_Name => CPT_Slug`
field, you need to pass in the post_type field as well.
Our rewrite rules don't set that, instead, it's set during the Query
parsing here: [http://core.trac.wordpress.org/browser/trunk/wp-includes
/class-wp.php#L274 wp-includes/class-wp.php#L274]
I don't quite understand why that code isn't within WP_Query myself.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19744#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list