[wp-trac] [WordPress Trac] #26877: Allow get_post() to accept a custom post object instead of only WP_Post

WordPress Trac noreply at wordpress.org
Tue Oct 13 02:08:54 UTC 2015


#26877: Allow get_post() to accept a custom post object instead of only WP_Post
------------------------------------------------+--------------------------
 Reporter:  MikeSchinkel                        |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Future
Component:  Posts, Post Types                   |  Release
 Severity:  normal                              |     Version:
 Keywords:  has-patch dev-feedback 2nd-opinion  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------
Changes (by MikeSchinkel):

 * keywords:  has-patch dev-feedback => has-patch dev-feedback 2nd-opinion


Comment:

 Added a patch with a different approach that has a
 `'get_custom_post_object'` filter in `get_post()`.

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


More information about the wp-trac mailing list