Changeset 6922 for trunk/src/includes/forums/functions.php
- Timestamp:
- 11/07/2019 07:40:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r6855 r6922 1822 1822 * Return an associative array of available topic statuses 1823 1823 * 1824 * Developers note: these statuses are actually stored as meta data, and 1825 * Visibilities are stored in post_status. 1826 * 1824 1827 * @since 2.4.0 bbPress (r5059) 1825 1828 * … … 1857 1860 /** 1858 1861 * Return an associative array of forum visibility 1862 * 1863 * Developers note: these visibilities are actually stored in post_status, and 1864 * Statuses are stored in meta data. 1859 1865 * 1860 1866 * @since 2.4.0 bbPress (r5059) … … 1872 1878 bbp_get_hidden_status_id() => _x( 'Hidden', 'Make forum hidden', 'bbpress' ) 1873 1879 ), $forum_id ); 1880 } 1881 1882 /** 1883 * Return array of public forum statuses. 1884 * 1885 * @since 2.6.0 bbPress (r6921) 1886 * 1887 * @return array 1888 */ 1889 function bbp_get_public_forum_statuses() { 1890 $statuses = array( 1891 bbp_get_public_status_id() 1892 ); 1893 1894 // Filter & return 1895 return (array) apply_filters( 'bbp_get_public_forum_statuses', $statuses ); 1896 } 1897 1898 /** 1899 * Return array of non-public forum statuses. 1900 * 1901 * @since 2.6.0 bbPress (r6921) 1902 * 1903 * @return array 1904 */ 1905 function bbp_get_non_public_forum_statuses() { 1906 $statuses = array( 1907 bbp_get_private_status_id(), 1908 bbp_get_hidden_status_id() 1909 ); 1910 1911 // Filter & return 1912 return (array) apply_filters( 'bbp_get_non_public_forum_statuses', $statuses ); 1874 1913 } 1875 1914 … … 2143 2182 'no_found_rows' => true 2144 2183 ) ); 2184 2145 2185 $reply_id = array_shift( $query->posts ); 2186 2146 2187 unset( $query ); 2147 2188
Note: See TracChangeset
for help on using the changeset viewer.