Why is userbar.php loaded from the header in 1.2?
-
Why is userbar.php loaded from the header in 1.2?
In 1.0 it was loaded in the template pages with bp_get_userbar(), but that function apparently doesn’t exist anymore. What are the advantages of the new approach. Would I get in trouble if I fall back on the old approach, probably by adding bp_get_userbar() to functions.php?
I need to figure out how to upgrade this in my custom template…
EDIT:
I now have this straight in template files – and removed the same lines from header.php:
<?php locate_template( array( 'userbar.php' ), true ) ?>
<?php locate_template( array( 'optionsbar.php' ), true ) ?>Couldn’t I just use a regular include here? Why locate_template etc.? What does this do?
- The topic ‘Why is userbar.php loaded from the header in 1.2?’ is closed to new replies.