Changeset 3505 for branches/plugin/bbp-includes/bbp-core-compatibility.php
- Timestamp:
- 09/10/2011 10:27:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-compatibility.php
r3496 r3505 265 265 'post_content' => '', 266 266 'post_type' => 'page', 267 'post_status' => 'publish',267 'post_status' => bbp_get_public_status_id(), 268 268 'post_name' => '', 269 269 'comment_status' => 'closed', … … 728 728 * 729 729 * @since bbPress (r3032) 730 *731 * @global bbPress $bbp732 * @global WP_Query $post733 730 * 734 731 * @param string $template … … 754 751 */ 755 752 function bbp_template_include_theme_supports( $template = '' ) { 756 global $bbp;757 753 758 754 // Current theme supports bbPress … … 826 822 'post_content' => '', 827 823 'post_type' => bbp_get_forum_post_type(), 828 'post_status' => 'publish',824 'post_status' => bbp_get_public_status_id(), 829 825 'is_archive' => true 830 826 ) ); … … 843 839 'post_content' => '', 844 840 'post_type' => bbp_get_topic_post_type(), 845 'post_status' => 'publish',841 'post_status' => bbp_get_public_status_id(), 846 842 'is_archive' => true 847 843 ) ); … … 875 871 'post_content' => '', 876 872 'post_type' => bbp_get_reply_post_type(), 877 'post_status' => 'publish'873 'post_status' => bbp_get_public_status_id() 878 874 ) ); 879 875 … … 904 900 'post_content' => '', 905 901 'post_type' => '', 906 'post_status' => 'publish'902 'post_status' => bbp_get_public_status_id() 907 903 ) ); 908 904 … … 1580 1576 1581 1577 // All users can see published forums 1582 $status[] = 'publish';1583 1584 // Add 'private'if user is capable1578 $status[] = bbp_get_public_status_id(); 1579 1580 // Add bbp_get_private_status_id() if user is capable 1585 1581 if ( current_user_can( 'read_private_forums' ) ) 1586 $status[] = 'private';1587 1588 // Add 'hidden'if user is capable1582 $status[] = bbp_get_private_status_id(); 1583 1584 // Add bbp_get_hidden_status_id() if user is capable 1589 1585 if ( current_user_can( 'read_hidden_forums' ) ) 1590 $status[] = $bbp->hidden_status_id;1586 $status[] = bbp_get_hidden_status_id(); 1591 1587 1592 1588 // Implode and add the statuses … … 1595 1591 // Topic tag page 1596 1592 } elseif ( bbp_is_topic_tag() ) { 1593 $posts_query->set( 'bbp_topic_tag', get_query_var( 'term' ) ); 1597 1594 $posts_query->set( 'post_type', bbp_get_topic_post_type() ); 1598 1595 $posts_query->set( 'posts_per_page', get_option( '_bbp_topics_per_page', 15 ) );
Note: See TracChangeset
for help on using the changeset viewer.