Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/08/2015 02:13:03 AM (5 years ago)
Author:
r-a-y
Message:

Remove class_exists() check for the WP_Date_Query class.

BuddyPress 2.4.0 bumps our minimum WP version to WP 3.8, which supports
the WP_Date_Query class.

Props DJPaul.

Fixes #6621.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r10182 r10210  
    841841
    842842        // Date query
    843         if ( ! empty( $date_query ) && is_array( $date_query ) && class_exists( 'BP_Date_Query' ) ) {
     843        if ( ! empty( $date_query ) && is_array( $date_query ) ) {
    844844            $date_query = new BP_Date_Query( $date_query, 'date_recorded' );
    845845            $sql = preg_replace( '/^\sAND/', '', $date_query->get_sql() );
Note: See TracChangeset for help on using the changeset viewer.