Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 10:19:51 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part III: miscellaneous fixes for some of the files of the core component.

Follow-up to [13883] and [13886]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-recursive-query.php

    r12547 r13887  
    9999
    100100                    $sql_chunks['join'] = array_merge( $sql_chunks['join'], $clause_sql['join'] );
    101                 // This is a subquery.
     101                    // This is a subquery.
    102102                } else {
    103103                    $clause_sql = $this->get_sql_for_query( $clause, $depth + 1 );
     
    157157                continue;
    158158
    159             // First-order clause.
     159                // First-order clause.
    160160            } elseif ( $this->is_first_order_clause( $query ) ) {
    161161                if ( isset( $query['value'] ) && array() === $query['value'] ) {
     
    165165                $clean_queries[] = $query;
    166166
    167             // Otherwise, it's a nested query, so we recurse.
     167                // Otherwise, it's a nested query, so we recurse.
    168168            } else {
    169169                $cleaned_query = $this->sanitize_query( $query );
     
    183183            $clean_queries['relation'] = 'OR';
    184184
    185         /*
    186          * If there is only a single clause, call the relation 'OR'.
    187          * This value will not actually be used to join clauses, but it
    188          * simplifies the logic around combining key-only queries.
    189          */
     185            /*
     186            * If there is only a single clause, call the relation 'OR'.
     187            * This value will not actually be used to join clauses, but it
     188            * simplifies the logic around combining key-only queries.
     189            */
    190190        } elseif ( 1 === count( $clean_queries ) ) {
    191191            $clean_queries['relation'] = 'OR';
    192192
    193         // Default to AND.
     193            // Default to AND.
    194194        } else {
    195195            $clean_queries['relation'] = 'AND';
Note: See TracChangeset for help on using the changeset viewer.