Skip to:
Content

BuddyPress.org

Changeset 10210


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.

Location:
trunk/src
Files:
2 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() );
  • trunk/src/bp-notifications/classes/class-bp-notifications-notification.php

    r10141 r10210  
    814814
    815815        // Bail if not a proper date query format
    816         if ( empty( $date_query ) || ! is_array( $date_query ) || ! class_exists( 'BP_Date_Query' ) ) {
     816        if ( empty( $date_query ) || ! is_array( $date_query ) ) {
    817817            return '';
    818818        }
Note: See TracChangeset for help on using the changeset viewer.