Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/18/2012 06:33:36 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Fix bug causing first iteration of theme stack to be skipped.
File:
1 edited

Legend:

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

    r4363 r4437  
    154154
    155155        // Loop through 'bbp_template_stack' filters, and call callback functions
    156         while ( next( $wp_filter[$tag] ) !== false ) {
     156        do {
    157157                foreach( (array) current( $wp_filter[$tag] ) as $the_ ) {
    158158                        if ( ! is_null( $the_['function'] ) ) {
    … …  
    161161                        }
    162162                }
    163         };
     163        } while ( next( $wp_filter[$tag] ) !== false );
    164164
    165165        // Remove 'bbp_template_stack' from the current filter array
Note: See TracChangeset for help on using the changeset viewer.