Ticket #7935: 7935.01.patch
| File 7935.01.patch, 945 bytes (added by , 8 years ago) |
|---|
-
src/bp-core/bp-core-buddybar.php
342 342 // No subnav item has been requested in the URL, so set a new nav default. 343 343 if ( empty( $unfiltered_action ) ) { 344 344 if ( ! bp_is_current_action( $r['subnav_slug'] ) ) { 345 /* 346 * If the screen function isn't available, attempt to find it. 347 * 348 * This is due to our conditional-loading code since v3.0.0. 349 */ 350 if ( ! is_callable( $r['screen_function'] ) ) { 351 $file = $bp->{$parent_nav->slug}->path . 'bp-' . $parent_nav->slug . '/screens/' . $r['subnav_slug'] . '.php'; 352 // Found the file, so require it. 353 if ( file_exists( $file ) ) { 354 require_once $file; 355 } 356 } 357 345 358 if ( is_callable( $r['screen_function'] ) ) { 346 359 add_action( 'bp_screens', $r['screen_function'], 3 ); 347 360 }