Skip to:
Content

#1911 closed enhancement (fixed)

Enhance bbPress theme compatibility (Redux)

Reported by: iamzippy Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.1
Component: Theme Compatability Keywords:
Cc: iamzippy

Description

On the subject of presenting user/author bio information:

Both Twentyten & Twentyeleven will skip the author-info code section entirely if the description field of a user profile is empty. This makes perfect sense; if there's nothing to display, then display nothing. At worst, an empty 'About' section could create the impression that something's ...broken?

It's trivial to apply a conditional around the equivalent entry-author-info section in bbpress/user-details.php and thus mimic the exact behaviour of the WordPress bundled themes.

 <? php if( $description = bbp_get_displayed_user_field( 'description' ) ) : ?>
  <!-- ...existing code... -->
 <?php endif; ?>

Bonus: since the description is already captured, it can be echoed directly without another function call.

The current plugin distro duplicates bbpress/user-details.php under bbp-theme-compat and bbp-twentyten.

Note: I didn't feel right re-opening #1713 (closed as fixed 6 months ago) since I reckon this is off on a tangent.

Change History (3)

comment:1 iamzippy21 months ago

  • Keywords needs-patch added

comment:2 johnjamesjacoby17 months ago

  • Keywords needs-patch removed
  • Milestone changed from Future Release to 2.2

Addressed in 2.2 with new user profiles.

comment:3 johnjamesjacoby15 months ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.