[wp-trac] [WordPress Trac] #28628: Query for "Mine" link in edit.php is not aware of custom post types

WordPress Trac noreply at wordpress.org
Sat Oct 18 20:29:02 UTC 2014


#28628: Query for "Mine" link in edit.php is not aware of custom post types
--------------------------+----------------------
 Reporter:  webmaster808  |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.9.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 webmaster808 - Thanks for the report.

 I'm guessing this is a bug with one or more of your plugins. You've
 already mentioned your CPT 'testimonial'. But the second query contains
 `wp_posts.post_type = 'blog'`. 'blog' is not a WP core post type either.
 My guess is that whatever plugin creates the 'blog' post type is also
 doing some sort of filter on post queries - hooking to 'pre_get_posts' or
 something like that - but is doing it too promiscuously and wrecking the
 query on the Mine tab.

 I created a couple custom post types locally to test, and verified that
 the counts and posts displayed under Mine matched in all cases.

 I suggest finding the plugin that creates the 'blog' post type and
 disabling it for testing. If you track this down and discover that this is
 indeed a core bug, please feel free to reopen this ticket with further
 details.

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


More information about the wp-trac mailing list