Changeset 6026 for trunk/src/includes/forums/functions.php
- Timestamp:
- 05/19/2016 07:35:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r5954 r6026 1791 1791 * @since 2.4.0 bbPress (r5059) 1792 1792 * 1793 * @param int $forum_id Optional. Forum id. 1794 * 1793 1795 * @return array 1794 1796 */ 1795 function bbp_get_forum_statuses( ) {1797 function bbp_get_forum_statuses( $forum_id = 0 ) { 1796 1798 return apply_filters( 'bbp_get_forum_statuses', array( 1797 1799 'open' => _x( 'Open', 'Open the forum', 'bbpress' ), 1798 1800 'closed' => _x( 'Closed', 'Close the forum', 'bbpress' ) 1799 ) );1801 ), $forum_id ); 1800 1802 } 1801 1803 … … 1805 1807 * @since 2.4.0 bbPress (r5059) 1806 1808 * 1809 * @param int $forum_id Optional. Forum id. 1810 * 1807 1811 * @return array 1808 1812 */ 1809 function bbp_get_forum_types( ) {1813 function bbp_get_forum_types( $forum_id = 0 ) { 1810 1814 return apply_filters( 'bbp_get_forum_types', array( 1811 1815 'forum' => _x( 'Forum', 'Forum accepts new topics', 'bbpress' ), 1812 1816 'category' => _x( 'Category', 'Forum is a category', 'bbpress' ) 1813 ) );1817 ), $forum_id ); 1814 1818 } 1815 1819 … … 1819 1823 * @since 2.4.0 bbPress (r5059) 1820 1824 * 1825 * @param int $forum_id Optional. Forum id. 1826 * 1821 1827 * @return array 1822 1828 */ 1823 function bbp_get_forum_visibilities( ) {1829 function bbp_get_forum_visibilities( $forum_id = 0) { 1824 1830 return apply_filters( 'bbp_get_forum_visibilities', array( 1825 1831 bbp_get_public_status_id() => _x( 'Public', 'Make forum public', 'bbpress' ), 1826 1832 bbp_get_private_status_id() => _x( 'Private', 'Make forum private', 'bbpress' ), 1827 1833 bbp_get_hidden_status_id() => _x( 'Hidden', 'Make forum hidden', 'bbpress' ) 1828 ) );1834 ), $forum_id ); 1829 1835 } 1830 1836
Note: See TracChangeset
for help on using the changeset viewer.