Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/27/2013 08:00:04 PM (13 years ago)
Author:
boonebgorges
Message:

break rather than continue when file is found in BP_Component::includes()

When we find the first instance of a file, there's no need to check the
rest of the members of the array - thus a break.

Fixes #5154

Props mboynes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-component.php

    r7298 r7355  
    228228                                if ( @is_file( $slashed_path . $path ) ) {
    229229                                        require( $slashed_path . $path );
    230                                         continue;
     230                                        break;
    231231                                }
    232232                        }
Note: See TracChangeset for help on using the changeset viewer.