Skip to:
Content

BuddyPress.org

Changeset 11376


Ignore:
Timestamp:
01/05/2017 10:28:44 PM (8 years ago)
Author:
slaffik
Message:

BP_User_Query: add 1=1 to WHERE clause.

See the discussion in #7290. It would make our query SQL clauses easier to debug and modify if they always contained a WHERE clause.

See #7332.

File:
1 edited

Legend:

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

    r11110 r11376  
    248248        $sql = array(
    249249            'select'  => '',
    250             'where'   => array(),
     250            'where'   => array('1=1'),
    251251            'orderby' => '',
    252252            'order'   => '',
Note: See TracChangeset for help on using the changeset viewer.