Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56992, comment 7


Ignore:
Timestamp:
02/05/2025 05:19:49 PM (20 months ago)
Author:
SirLouen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56992, comment 7

    initial v1  
    33But @oglekler raised an interesting concern I'm looking into right now: The test seems to be failing because it is expected to work with the minimal data structure, but your implementation seems to be trying to convert it to full post objects, creating unnecessary overhead and potentially changing the expected data structure.
    44
    5 As you said, in the original test, you can see on one side, you populated the child post with full data, on the other side, just the bare minimal data was retrieved, and the rest was fed with default data as you pointed out in your first post in the test. This is why the test is failing, but it should fail that specific test as expected, as `next_post()` should not retrieve full data by default.
     5As you said, in the original test, you can see on one side, you populated the child post with full data, on the other side, just the bare minimal data was retrieved, and the rest was fed with default data as you pointed out in your first post in the test. This is why the test is failing, but it should fail that specific test as expected, as `next_post()` should not retrieve full data by default, as it may generate a performance issue in the future.
    66
    77I need a 2nd opinion on this, maybe @joemcgill?