Changeset 62775 for branches/6.9/src/wp-includes/class-wp-query.php
- Timestamp:
- 07/17/2026 04:36:42 PM (3 months ago)
- File:
-
- 1 edited
-
branches/6.9/src/wp-includes/class-wp-query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9/src/wp-includes/class-wp-query.php
r61044 r62775 2402 2402 2403 2403 if ( ! empty( $query_vars['author__not_in'] ) ) { 2404 if ( is_array( $query_vars['author__not_in'] ) ) { 2405 $query_vars['author__not_in'] = array_unique( array_map( 'absint', $query_vars['author__not_in'] ) ); 2406 sort( $query_vars['author__not_in'] ); 2407 } 2408 $author__not_in = implode( ',', (array) $query_vars['author__not_in'] ); 2409 $where .= " AND {$wpdb->posts}.post_author NOT IN ($author__not_in) "; 2404 $author__not_in_id_list = wp_parse_id_list( $query_vars['author__not_in'] ); 2405 if ( count( $author__not_in_id_list ) > 0 ) { 2406 sort( $author__not_in_id_list ); 2407 $where .= sprintf( 2408 " AND {$wpdb->posts}.post_author NOT IN (%s) ", 2409 implode( ',', $author__not_in_id_list ) 2410 ); 2411 /** Update the query var for stable cache key generation in {@see self::generate_cache_key()}. */ 2412 $query_vars['author__not_in'] = $author__not_in_id_list; 2413 } 2410 2414 } elseif ( ! empty( $query_vars['author__in'] ) ) { 2411 2415 if ( is_array( $query_vars['author__in'] ) ) {
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)