Skip to:
Content

bbPress.org

Changeset 5511


Ignore:
Timestamp:
09/11/2014 03:34:53 PM (7 years ago)
Author:
johnjamesjacoby
Message:

In our BuddyPress Groups display_forums method, break out of switch statement rather than return. This prevents malformed markup caused by not allowing the method to continue on. Hat-tip boonebgorges, netweb. Fixes #2595.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r5466 r5511  
    817817                        <h3><?php bbp_forum_title(); ?></h3>
    818818                        <?php bbp_get_template_part( 'feedback', 'no-topics' );
    819                         return;
     819                        break;
    820820                    }
    821821
     
    879879                        <h3><?php bbp_forum_title(); ?></h3>
    880880                        <?php bbp_get_template_part( 'feedback', 'no-replies' );
    881                         return;
     881                        break;
    882882                    }
    883883
     
    913913            wp_reset_query(); ?>
    914914
    915         </div>
     915        </div><!-- #bbpress-forums -->
    916916
    917917        <?php
Note: See TracChangeset for help on using the changeset viewer.