Changeset 11080 for trunk/src/bp-blogs/classes/class-bp-blogs-component.php
- Timestamp:
- 09/10/2016 02:25:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r10674 r11080 7 7 * information from those blogs to make querying blogs in bulk more performant. 8 8 * 9 9 * @package BuddyPress 10 10 * @subpackage BlogsCore 11 11 * @since 1.5.0 … … 45 45 * @since 1.5.0 46 46 * 47 47 * @see BP_Component::setup_globals() for description of parameters. 48 48 * 49 49 * @param array $args See {@link BP_Component::setup_globals()}. … … 65 65 'blog' => $bp->table_prefix . 'bp_user_blogs_blogmeta', 66 66 ); 67 68 // Fetch the default directory title. 69 $default_directory_titles = bp_core_get_directory_page_default_titles(); 70 $default_directory_title = $default_directory_titles[$this->id]; 67 71 68 72 // All globals for blogs component. … … 71 75 'root_slug' => isset( $bp->pages->blogs->slug ) ? $bp->pages->blogs->slug : BP_BLOGS_SLUG, 72 76 'has_directory' => is_multisite(), // Non-multisite installs don't need a top-level Sites directory, since there's only one site. 73 'directory_title' => _x( 'Sites', 'component directory title', 'buddypress' ),77 'directory_title' => isset( $bp->pages->blogs->title ) ? $bp->pages->blogs->title : $default_directory_title, 74 78 'notification_callback' => 'bp_blogs_format_notifications', 75 79 'search_string' => __( 'Search sites...', 'buddypress' ), … … 151 155 * @param array $main_nav Optional. See BP_Component::setup_nav() for 152 156 * description. 153 157 * @param array $sub_nav Optional. See BP_Component::setup_nav() for 154 158 * description. 155 159 */
Note: See TracChangeset
for help on using the changeset viewer.