Skip to:
Content

bbPress.org

Changeset 4327


Ignore:
Timestamp:
11/03/2012 10:45:29 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Only iterate through bbp_get_template_stack() one time per call to bbp_locate_template().
  • See #1968.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/template-functions.php

    r4326 r4327  
    6262
    6363    // No file found yet
    64     $located = false;
     64    $located            = false;
     65    $template_locations = bbp_get_template_stack();
    6566
    6667    // Try to find a template file
     
    7576
    7677        // Loop through template stack
    77         foreach ( (array) bbp_get_template_stack() as $template_location ) {
     78        foreach ( (array) $template_locations as $template_location ) {
    7879
    7980            // Continue if $template_location is empty
Note: See TracChangeset for help on using the changeset viewer.