Changeset 4579 for trunk/includes/core/theme-compat.php
- Timestamp:
- 12/16/2012 08:19:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/theme-compat.php
r4534 r4579 436 436 * @uses bbp_is_single_view() To check if page is single view 437 437 * @uses bbp_get_single_view_template() To get view template 438 * @uses bbp_is_search() To check if page is search 439 * @uses bbp_get_search_template() To get search template 438 440 * @uses bbp_is_forum_edit() To check if page is forum edit 439 441 * @uses bbp_get_forum_edit_template() To get forum edit template … … 584 586 'ID' => 0, 585 587 'post_title' => bbp_get_view_title(), 588 'post_author' => 0, 589 'post_date' => 0, 590 'post_content' => '', 591 'post_type' => '', 592 'post_status' => bbp_get_public_status_id(), 593 'comment_status' => 'closed' 594 ) ); 595 596 /** Search ************************************************************/ 597 598 } elseif ( bbp_is_search() ) { 599 600 // Reset post 601 bbp_theme_compat_reset_post( array( 602 'ID' => 0, 603 'post_title' => bbp_get_search_title(), 586 604 'post_author' => 0, 587 605 'post_date' => 0, … … 825 843 $new_content = $bbp->shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) ); 826 844 845 /** Search ************************************************************/ 846 847 } elseif ( bbp_is_search() ) { 848 $new_content = $bbp->shortcodes->display_search( array( 'search' => get_query_var( 'bbp_search' ) ) ); 849 827 850 /** Topic Tags ********************************************************/ 828 851
Note: See TracChangeset
for help on using the changeset viewer.