Changeset 10374 for trunk/src/bp-blogs/bp-blogs-screens.php
- Timestamp:
- 11/23/2015 03:55:00 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-screens.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-screens.php
r10100 r10374 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 96 96 public function is_blogs() { 97 97 98 // Bail if not looking at a group 98 // Bail if not looking at a group. 99 99 if ( ! bp_is_blogs_component() ) 100 100 return; 101 101 102 // Bail if looking at a users sites 102 // Bail if looking at a users sites. 103 103 if ( bp_is_user() ) 104 104 return; 105 105 106 // Blog Directory 106 // Blog Directory. 107 107 if ( is_multisite() && ! bp_current_action() ) { 108 108 bp_update_is_directory( true, 'blogs' ); … … 120 120 add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) ); 121 121 122 // Create blog 122 // Create blog. 123 123 } elseif ( is_user_logged_in() && bp_blog_signup_enabled() ) { 124 124 add_filter( 'bp_get_buddypress_template', array( $this, 'create_template_hierarchy' ) ); … … 139 139 * 140 140 * @param string $templates The templates from bp_get_theme_compat_templates(). 141 *142 141 * @return array $templates Array of custom templates to look for. 143 142 */ … … 156 155 157 156 // Merge new templates with existing stack 158 // @see bp_get_theme_compat_templates() 157 // @see bp_get_theme_compat_templates(). 159 158 $templates = array_merge( (array) $new_templates, $templates ); 160 159 … … 202 201 * 203 202 * @param string $templates The templates from bp_get_theme_compat_templates(). 204 *205 203 * @return array $templates Array of custom templates to look for. 206 204 */ … … 219 217 220 218 // Merge new templates with existing stack 221 // @see bp_get_theme_compat_templates() 219 // @see bp_get_theme_compat_templates(). 222 220 $templates = array_merge( (array) $new_templates, $templates ); 223 221 … … 232 230 public function create_dummy_post() { 233 231 234 // Title based on ability to create blogs 232 // Title based on ability to create blogs. 235 233 if ( is_user_logged_in() && bp_blog_signup_enabled() ) { 236 234 $title = __( 'Create a Site', 'buddypress' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)