Changeset 61191
- Timestamp:
- 11/10/2025 08:26:46 PM (3 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
-
class-wp-date-query.php (modified) (2 diffs)
-
class-wpdb.php (modified) (7 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. -
trunk/src/wp-includes/class-wpdb.php
r61102 r61191 468 468 * @since 3.0.0 469 469 * 470 * @var string 470 * @var string|null 471 471 */ 472 472 public $blogs; … … 477 477 * @since 5.1.0 478 478 * 479 * @var string 479 * @var string|null 480 480 */ 481 481 public $blogmeta; … … 486 486 * @since 3.0.0 487 487 * 488 * @var string 488 * @var string|null 489 489 */ 490 490 public $registration_log; … … 495 495 * @since 3.0.0 496 496 * 497 * @var string 497 * @var string|null 498 498 */ 499 499 public $signups; … … 504 504 * @since 3.0.0 505 505 * 506 * @var string 506 * @var string|null 507 507 */ 508 508 public $site; … … 513 513 * @since 3.0.0 514 514 * 515 * @var string 515 * @var string|null 516 516 */ 517 517 public $sitecategories; … … 522 522 * @since 3.0.0 523 523 * 524 * @var string 524 * @var string|null 525 525 */ 526 526 public $sitemeta;
Note: See TracChangeset
for help on using the changeset viewer.