Make WordPress Core


Ignore:
Timestamp:
10/21/2025 03:57:16 PM (4 months ago)
Author:
davidbaumwald
Message:

Users: Revert Lazy-load user meta.

With [60915] reverted, this changeset is also being reverted to resolve test failures due to common code.

Reverts [60989].

Follow-up to [61037].

Props jorbin, ellatrix, spacedmonkey.
See #63021, #58001.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/cacheResults.php

    r60989 r61038  
    19831983        $num_loop_queries = get_num_queries() - $start_loop_queries;
    19841984        /*
    1985          * One expected query:
    1986          * 1: User data.
     1985         * Two expected queries:
     1986         * 1: User meta data,
     1987         * 2: User data.
    19871988         */
    1988         $this->assertSame( 1, $num_loop_queries, 'Unexpected number of queries while initializing the loop.' );
     1989        $this->assertSame( 2, $num_loop_queries, 'Unexpected number of queries while initializing the loop.' );
    19891990
    19901991        $start_author_queries = get_num_queries();
Note: See TracChangeset for help on using the changeset viewer.