Changeset 6672
- Timestamp:
- 08/28/2017 02:09:54 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bbpress.php
r6623 r6672 520 520 'hierarchical' => true, 521 521 'query_var' => true, 522 'menu_icon' => '' 522 'menu_icon' => '', 523 'source' => 'bbpress', 523 524 ) ) 524 525 ); … … 545 546 'hierarchical' => false, 546 547 'query_var' => true, 547 'menu_icon' => '' 548 'menu_icon' => '', 549 'source' => 'bbpress', 548 550 ) 549 551 ) ); … … 570 572 'hierarchical' => false, 571 573 'query_var' => true, 572 'menu_icon' => '' 574 'menu_icon' => '', 575 'source' => 'bbpress', 573 576 ) ) 574 577 ); … … 593 596 'public' => true, 594 597 'show_in_admin_status_list' => true, 595 'show_in_admin_all_list' => true 598 'show_in_admin_all_list' => true, 599 'source' => 'bbpress' 596 600 ) ) 597 601 ); … … 606 610 'exclude_from_search' => true, 607 611 'show_in_admin_status_list' => true, 608 'show_in_admin_all_list' => false 612 'show_in_admin_all_list' => false, 613 'source' => 'bbpress' 609 614 ) ) 610 615 ); … … 619 624 'exclude_from_search' => true, 620 625 'show_in_admin_status_list' => true, 621 'show_in_admin_all_list' => false 626 'show_in_admin_all_list' => false, 627 'source' => 'bbpress' 622 628 ) ) 623 629 ); … … 632 638 'exclude_from_search' => true, 633 639 'show_in_admin_status_list' => true, 634 'show_in_admin_all_list' => true 640 'show_in_admin_all_list' => true, 641 'source' => 'bbpress' 635 642 ) ) 636 643 ); … … 682 689 'public' => true, 683 690 'show_ui' => bbp_allow_topic_tags() && current_user_can( 'bbp_topic_tags_admin' ), 691 'source' => 'bbpress' 684 692 ) 685 693 ) ); -
trunk/src/includes/core/template-functions.php
r6641 r6672 716 716 717 717 // Do topics on forums root 718 } elseif ( is_post_type_archive( array( bbp_get_forum_post_type(), bbp_get_topic_post_type() ) ) && ( 'topics' === bbp_show_on_root() ) ) {718 } elseif ( is_post_type_archive( get_post_types( array( 'source' => 'bbpress', 'has_archive' ) ) ) && ( 'topics' === bbp_show_on_root() ) ) { 719 719 $posts_query->bbp_show_topics_on_root = true; 720 720 } -
trunk/src/includes/forums/functions.php
r6644 r6672 2049 2049 2050 2050 // Some other post type besides Forums, Topics, or Replies 2051 } elseif ( ! array_diff( $post_types, array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() ) ) ) {2051 } elseif ( ! array_diff( $post_types, get_post_types( array( 'source' => 'bbpress' ) ) ) ) { 2052 2052 2053 2053 // Get forums to exclude -
trunk/src/includes/search/template.php
r6629 r6672 26 26 27 27 $default_search_terms = bbp_get_search_terms(); 28 $default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );28 $default_post_types = get_post_types( array( 'source' => 'bbpress' ) ); 29 29 30 30 // Default query args 31 31 $default = array( 32 'post_type' => $default_post_type ,// Forums, topics, and replies32 'post_type' => $default_post_types, // Forums, topics, and replies 33 33 'posts_per_page' => bbp_get_replies_per_page(), // This many 34 34 'paged' => bbp_get_paged(), // On this page
Note: See TracChangeset
for help on using the changeset viewer.