Changeset 10279
- Timestamp:
- 10/15/2015 02:27:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r10166 r10279 213 213 214 214 // Sort 215 if ( ! isset( $merged_filters[ $tag ] ) ) { 216 ksort( $wp_filter[$tag] ); 217 $merged_filters[ $tag ] = true; 215 if ( class_exists( 'WP_Hook' ) ) { 216 $filter = $wp_filter[ $tag ]->callbacks; 217 } else { 218 $filter = &$wp_filter[ $tag ]; 219 220 if ( ! isset( $merged_filters[ $tag ] ) ) { 221 ksort( $filter ); 222 $merged_filters[ $tag ] = true; 223 } 218 224 } 219 225 220 226 // Ensure we're always at the beginning of the filter array 221 reset( $ wp_filter[ $tag ]);227 reset( $filter ); 222 228 223 229 // Loop through 'bp_template_stack' filters, and call callback functions 224 230 do { 225 foreach( (array) current( $ wp_filter[$tag]) as $the_ ) {231 foreach( (array) current( $filter ) as $the_ ) { 226 232 if ( ! is_null( $the_['function'] ) ) { 227 233 $args[1] = $stack; … … 229 235 } 230 236 } 231 } while ( next( $ wp_filter[$tag]) !== false );237 } while ( next( $filter ) !== false ); 232 238 233 239 // Remove 'bp_template_stack' from the current filter array
Note: See TracChangeset
for help on using the changeset viewer.