Changeset 6246 for trunk/src/includes/core/options.php
- Timestamp:
- 01/16/2017 05:22:53 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/options.php
r6078 r6246 272 272 273 273 /** 274 * Are replies threaded275 *276 * @since 2.4.0 bbPress (r4944)277 *278 * @param bool $default Optional. Default value true279 * @uses apply_filters() Calls 'bbp_thread_replies' with the calculated value and280 * the thread replies depth281 * @uses get_option() To get thread replies option282 * @return bool Are replies threaded?283 */284 function bbp_thread_replies() {285 $depth = bbp_thread_replies_depth();286 $allow = bbp_allow_threaded_replies();287 $retval = (bool) ( ( $depth >= 2 ) && ( true === $allow ) );288 289 return (bool) apply_filters( 'bbp_thread_replies', $retval, $depth, $allow );290 }291 292 /**293 274 * Are threaded replies allowed 294 275 *
Note: See TracChangeset
for help on using the changeset viewer.