[wp-trac] [WordPress Trac] #61773: get_posts() returns posts of removed custom post type

WordPress Trac noreply at wordpress.org
Fri Jul 26 17:35:20 UTC 2024


#61773: get_posts() returns posts of removed custom post type
-------------------------------+------------------------------
 Reporter:  rajanit2000        |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by knutsp):

 What is the prolem with the current behaviour?

 I would expect it to return what's in the database, and if I wanted to
 exclude unregistered posts, even when I explicitly specify a possibly
 unregsitered post type, to check that before calling get_posts. This very
 edge case, I think.

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


More information about the wp-trac mailing list