Ticket #5803: 5803.sans-destructor.patch
File 5803.sans-destructor.patch, 681 bytes (added by , 10 years ago) |
---|
-
src/bp-core/bp-core-classes.php
1543 1543 } 1544 1544 1545 1545 /** 1546 * Override the parent get_sql() method. 1547 * 1548 * This is done to remove our date column after we've grabbed our SQL statement. 1549 */ 1550 public function get_sql() { 1551 $sql = parent::get_sql(); 1552 1553 // clean up after ourselves 1554 remove_filter( 'date_query_valid_columns', array( $this, 'register_date_column' ) ); 1555 1556 return $sql; 1557 } 1558 1559 /** 1546 1560 * Registers our date column with WP Date Query to pass validation. 1547 1561 * 1548 1562 * @param array $retval Current DB columns