Making WordPress.org

Changeset 13085


Ignore:
Timestamp:
12/23/2023 09:01:28 AM (15 months ago)
Author:
dd32
Message:

Theme Directory: 'author=123' is an author query that should return all results, similar to 'author_name=example-user'.

This fixes queries using get_posts( [ 'author' => 123, 'posts_per_page' => -1 ] ); returning truncated results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/query-modifications.php

    r12645 r13085  
    161161        empty( $query->query_vars['name'] ) &&
    162162        empty( $query->query_vars['author_name'] ) &&
     163        empty( $query->query_vars['author'] ) &&
    163164        ! in_array( $query->query_vars['browse'], array( 'favorites', 'new', 'updated' ) ) &&
    164165        empty( $query->query_vars['meta_query']['trac_sync_ticket_id'] ) && // jobs/class-trac-sync.php - Always needs to find the post, and looks up via a meta search.
Note: See TracChangeset for help on using the changeset viewer.