Skip to:
Content

BuddyPress.org

Changeset 10213


Ignore:
Timestamp:
10/08/2015 05:02:54 AM (11 years ago)
Author:
r-a-y
Message:

bp-legacy: Output the title if one exists in the members plugins template part.

Previously, if a plugin wanted to omit the title from rendering, the
members plugins template part would still render an empty <h3> element;
this obviously isn't so great!

This commit now allows a plugin to omit the title as intended.

Fixes #6486.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/plugins.php

    r10150 r10213  
    3636                <?php endif; ?>
    3737
    38                 <h3><?php
     38                <?php if ( has_action( 'bp_template_title' ) ) : ?>
     39                        <h3><?php
    3940
    4041                        /**
    … …  
    4445                         */
    4546                        do_action( 'bp_template_title' ); ?></h3>
     47
     48                <?php endif; ?>
    4649
    4750                <?php
Note: See TracChangeset for help on using the changeset viewer.