Changeset 6398
- Timestamp:
- 10/10/2012 08:30:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-classes.php
r6372 r6398 266 266 267 267 // Add URLs to any Featured Image this post might have 268 if ( has_post_thumbnail( $paged_blogs[$i]->latest_post->ID ) ) {268 if ( ! empty( $paged_blogs[$i]->latest_post ) && has_post_thumbnail( $paged_blogs[$i]->latest_post->ID ) ) { 269 269 270 270 // Grab 4 sizes of the image. Thumbnail. … … 287 287 if ( ! empty( $image ) ) 288 288 $images['post-thumbnail'] = $image[0]; 289 290 // Add the images to the latest_post object 291 $paged_blogs[$i]->latest_post->images = $images; 289 292 } 290 291 // Add the images to the latest_post object292 $paged_blogs[$i]->latest_post->images = $images;293 293 } 294 294
Note: See TracChangeset
for help on using the changeset viewer.