Skip to content

Commit 6b75852

Browse files
committed
Fix: Update variable name from $q to $args in WP_Query class for consistency in orderby parameter handling.
1 parent 33d4edd commit 6b75852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5043,7 +5043,7 @@ protected function generate_cache_key( array $args, $sql ) {
50435043
}
50445044

50455045
// Add a default orderby value of date to ensure same cache key generation.
5046-
if ( ! isset( $q['orderby'] ) ) {
5046+
if ( ! isset( $args['orderby'] ) ) {
50475047
$args['orderby'] = 'date';
50485048
}
50495049

0 commit comments

Comments
 (0)