[wp-trac] [WordPress Trac] #47096: get_post_type() in author.php return random post type

WordPress Trac noreply at wordpress.org
Thu May 2 15:09:58 UTC 2019


#47096: get_post_type() in author.php return random post type
-------------------------------+------------------------------
 Reporter:  wolly              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  worksforme
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by knutsp):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Would guess it returns the type of the ''last'' post in the loop, when in
 a sidebar that is rendered after the loop.

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


More information about the wp-trac mailing list