Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/16/2017 05:22:53 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Replies: Update bbp_thread_replies() to skip user profile pages.

  • Move from core/options to replies/functions, since this isn't directly an option
  • Add ! bbp_is_single_user_replies() check to force false if so
  • Update threaded replies pagination to re-include verbiage.

Fixes #3002.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/options.php

    r6078 r6246  
    272272
    273273/**
    274  * Are replies threaded
    275  *
    276  * @since 2.4.0 bbPress (r4944)
    277  *
    278  * @param bool $default Optional. Default value true
    279  * @uses apply_filters() Calls 'bbp_thread_replies' with the calculated value and
    280  *                        the thread replies depth
    281  * @uses get_option() To get thread replies option
    282  * @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 /**
    293274 * Are threaded replies allowed
    294275 *
Note: See TracChangeset for help on using the changeset viewer.