Changeset 3550
- Timestamp:
- 10/30/2011 03:42:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-compatibility.php
r3516 r3550 1096 1096 1097 1097 // Page exists where this archive should be 1098 if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) { 1098 $page = bbp_get_page_by_path( $bbp->root_slug ); 1099 if ( !empty( $page ) ) { 1099 1100 1100 1101 // Start output buffer … … 1121 1122 1122 1123 // Page exists where this archive should be 1123 if ( $page = bbp_get_page_by_path( $bbp->topic_archive_slug ) ) { 1124 $page = bbp_get_page_by_path( $bbp->topic_archive_slug ); 1125 if ( !empty( $page ) ) { 1124 1126 1125 1127 // Start output buffer … … 1511 1513 * @uses bbp_is_query_name() Check if query name is 'bbp_widget' 1512 1514 * @uses bbp_get_view_query_args() To get the view query args 1515 * @uses bbp_get_forum_post_type() To get the forum post type 1513 1516 * @uses bbp_get_topic_post_type() To get the topic post type 1514 1517 * @uses bbp_get_reply_post_type() To get the reply post type … … 1632 1635 } elseif ( !empty( $is_edit ) ) { 1633 1636 1637 // We are editing a forum 1638 if ( $posts_query->get( 'post_type' ) == bbp_get_forum_post_type() ) { 1639 $posts_query->bbp_is_forum_edit = true; 1640 1634 1641 // We are editing a topic 1635 if ( $posts_query->get( 'post_type' ) == bbp_get_topic_post_type() ) {1642 } elseif ( $posts_query->get( 'post_type' ) == bbp_get_topic_post_type() ) { 1636 1643 $posts_query->bbp_is_topic_edit = true; 1637 1644
Note: See TracChangeset
for help on using the changeset viewer.