Changeset 6923 for trunk/src/includes/common/functions.php
- Timestamp:
- 11/09/2019 05:35:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6922 r6923 1664 1664 } 1665 1665 1666 // Get the public posts status 1667 $post_status = array( bbp_get_public_status_id() ); 1668 1669 // Add closed status if topic post type 1670 if ( bbp_get_topic_post_type() === $post_type ) { 1671 $post_status[] = bbp_get_closed_status_id(); 1666 // Which statuses 1667 switch ( $post_type ) { 1668 1669 // Forum 1670 case bbp_get_forum_post_type() : 1671 $post_status = bbp_get_public_forum_statuses(); 1672 break; 1673 1674 // Topic 1675 case bbp_get_topic_post_type() : 1676 $post_status = bbp_get_public_topic_statuses(); 1677 break; 1678 1679 // Reply 1680 case bbp_get_reply_post_type() : 1681 default : 1682 $post_status = bbp_get_public_reply_statuses(); 1683 break; 1672 1684 } 1673 1685 … … 1823 1835 // Forum 1824 1836 case bbp_get_forum_post_type() : 1825 $post_status = array( bbp_get_public_status_id());1837 $post_status = bbp_get_public_forum_statuses(); 1826 1838 break; 1827 1839
Note: See TracChangeset
for help on using the changeset viewer.