Changeset 3917 for trunk/bp-blogs/bp-blogs-screens.php
- Timestamp:
- 01/25/2011 08:58:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-screens.php
r3763 r3917 8 8 9 9 function bp_blogs_screen_my_blogs() { 10 global $bp;11 12 10 if ( !is_multisite() ) 13 11 return false; … … 19 17 20 18 function bp_blogs_screen_create_a_blog() { 21 global $bp; 22 23 if ( !is_multisite() || $bp->current_component != $bp->blogs->slug || 'create' != $bp->current_action ) 19 if ( !is_multisite() || !bp_is_blogs_component() || !bp_is_current_action( 'create' ) ) 24 20 return false; 25 21 … … 31 27 bp_core_load_template( apply_filters( 'bp_blogs_template_create_a_blog', 'blogs/create' ) ); 32 28 } 33 add_action( ' wp', 'bp_blogs_screen_create_a_blog', 3 );29 add_action( 'bp_screens', 'bp_blogs_screen_create_a_blog', 3 ); 34 30 35 31 function bp_blogs_screen_index() { 36 32 global $bp; 37 33 38 if ( is_multisite() && $bp->current_component == $bp->blogs->slug && empty( $bp->current_action) ) {34 if ( is_multisite() && bp_is_blogs_component() && !bp_current_action() ) { 39 35 $bp->is_directory = true; 40 36 … … 44 40 } 45 41 } 46 add_action( ' wp', 'bp_blogs_screen_index', 2 );42 add_action( 'bp_screens', 'bp_blogs_screen_index', 2 ); 47 43 48 44 ?>
Note: See TracChangeset
for help on using the changeset viewer.