Changeset 3704 for branches/plugin/bbp-includes/bbp-common-template.php
- Timestamp:
- 01/28/2012 08:41:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-common-template.php
r3656 r3704 479 479 */ 480 480 function bbp_is_user_home() { 481 global $bbp;482 481 483 482 // Assume false … … 1075 1074 1076 1075 // Forums 1077 if ( $post_type == bbp_get_forum_post_type()) {1076 if ( bbp_get_forum_post_type() == $post_type ) { 1078 1077 1079 1078 // Private forums 1080 if ( current_user_can( 'read_private_forums' ) ) 1079 if ( current_user_can( 'read_private_forums' ) ) { 1081 1080 $post_stati[] = bbp_get_private_status_id(); 1081 } 1082 1082 1083 1083 // Hidden forums 1084 if ( current_user_can( 'read_hidden_forums' ) ) 1084 if ( current_user_can( 'read_hidden_forums' ) ) { 1085 1085 $post_stati[] = bbp_get_hidden_status_id(); 1086 } 1086 1087 } 1087 1088 … … 1409 1410 // If it's an edit, use the $post global 1410 1411 if ( bbp_is_edit() ) { 1411 global $post; 1412 $post_content = $post->post_content; 1412 $post_content = bbp_get_global_post_field( 'post_content' ); 1413 1413 } 1414 1414 … … 1517 1517 global $bbp; 1518 1518 1519 if ( !$view = bbp_get_view_id( $view ) ) 1519 $view = bbp_get_view_id( $view ); 1520 if ( empty( $view ) ) 1520 1521 return false; 1521 1522 … … 1550 1551 global $bbp, $wp_rewrite; 1551 1552 1552 if ( !$view = bbp_get_view_id( $view ) ) 1553 $view = bbp_get_view_id( $view ); 1554 if ( empty( $view ) ) 1553 1555 return home_url(); 1554 1556
Note: See TracChangeset
for help on using the changeset viewer.