diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
index 1f2c5e9..28d3f66 100644
|
|
|
function bp_get_options_title() { |
| 123 | 123 | function bp_get_directory_title( $component = '' ) { |
| 124 | 124 | $title = ''; |
| 125 | 125 | |
| 126 | | // Use the string provided by the component. |
| 127 | | if ( ! empty( buddypress()->{$component}->directory_title ) ) { |
| | 126 | // Use the WordPress Page title. |
| | 127 | if ( ! empty( buddypress()->pages->{$component}->title ) ) { |
| | 128 | $title = buddypress()->pages->{$component}->title; |
| | 129 | |
| | 130 | // Or use the string provided by the component in bp-{component}-loader.php setup_globals. |
| | 131 | } elseif ( ! empty( buddypress()->{$component}->directory_title ) ) { |
| 128 | 132 | $title = buddypress()->{$component}->directory_title; |
| 129 | 133 | |
| 130 | 134 | // If none is found, concatenate. |