[buddypress-trac] [BuddyPress Trac] #8641: Post thumbnail can never be fetched inside BP_Blogs_Blog::get_blog_extras()

buddypress-trac noreply at wordpress.org
Tue Aug 2 20:24:13 UTC 2022


#8641: Post thumbnail can never be fetched inside BP_Blogs_Blog::get_blog_extras()
------------------------------+---------------------
 Reporter:  boonebgorges      |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  11.0.0
Component:  Blogs             |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13307" 13307]:
 {{{
 #!CommitTicketReference repository="" revision="13307"
 Blogs: improve the way post featured image are fetched in blogs loop

 1. Make sure to switch blog before using  `has_post_thumbnail()` so that
 post featured image about sub blogs are fetched.
 2. Introduce the `bp_blogs_fetch_latest_post_thumbnails` filter to let
 advanced users skip queries about these post featured images by returning
 false.

 Props boonebgorges

 Fixes #8641
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8641#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list