Changeset 61191 for trunk/src/wp-includes/class-wp-date-query.php
- Timestamp:
- 11/10/2025 08:26:46 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-date-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-date-query.php
r59465 r61191 483 483 484 484 $valid_columns = array( 485 'post_date', 486 'post_date_gmt', 487 'post_modified', 488 'post_modified_gmt', 489 'comment_date', 490 'comment_date_gmt', 491 'user_registered', 492 'registered', 493 'last_updated', 494 ); 485 'post_date', // Part of $wpdb->posts. 486 'post_date_gmt', // Part of $wpdb->posts. 487 'post_modified', // Part of $wpdb->posts. 488 'post_modified_gmt', // Part of $wpdb->posts. 489 'comment_date', // Part of $wpdb->comments. 490 'comment_date_gmt', // Part of $wpdb->comments. 491 'user_registered', // Part of $wpdb->users. 492 ); 493 494 if ( is_multisite() ) { 495 $valid_columns = array_merge( 496 $valid_columns, 497 array( 498 'registered', // Part of $wpdb->blogs. 499 'last_updated', // Part of $wpdb->blogs. 500 ) 501 ); 502 } 495 503 496 504 // Attempt to detect a table prefix. … … 526 534 'user_registered', 527 535 ), 528 $wpdb->blogs => array( 536 ); 537 538 if ( is_multisite() ) { 539 $known_columns[ $wpdb->blogs ] = array( 529 540 'registered', 530 541 'last_updated', 531 ) ,532 );542 ); 543 } 533 544 534 545 // If it's a known column name, add the appropriate table prefix.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)