diff --git wp-includes/date.php wp-includes/date.php
index 2e903a2..c0fcb3f 100644
|
|
|
class WP_Date_Query {
|
| 510 | 510 | $column = 'post_date'; |
| 511 | 511 | } |
| 512 | 512 | |
| 513 | | $known_columns = array( |
| | 513 | /** |
| | 514 | * Filter the list of known date query columns. |
| | 515 | * |
| | 516 | * @since 0.0.0 |
| | 517 | * |
| | 518 | * @param array An associative array of known date query columns by core table. |
| | 519 | * Defaults are posts( 'post_date', 'post_date_gmt', 'post_modified', |
| | 520 | * 'post_modified_gmt'), comments( 'comment_date', 'comment_date_gmt'), |
| | 521 | * users( 'user_registered') |
| | 522 | */ |
| | 523 | $known_columns = apply_filters( 'date_query_known_columns', array( |
| 514 | 524 | $wpdb->posts => array( |
| 515 | 525 | 'post_date', |
| 516 | 526 | 'post_date_gmt', |
| … |
… |
class WP_Date_Query {
|
| 524 | 534 | $wpdb->users => array( |
| 525 | 535 | 'user_registered', |
| 526 | 536 | ), |
| 527 | | ); |
| | 537 | ) ); |
| 528 | 538 | |
| 529 | 539 | // If it's a known column name, add the appropriate table prefix. |
| 530 | 540 | foreach ( $known_columns as $table_name => $table_columns ) { |