Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41197, comment 2


Ignore:
Timestamp:
07/03/2017 10:46:57 AM (8 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41197, comment 2

    initial v1  
    33* The `$fields` argument can always be unset, even if `$count` is true, as that parameter will already distinguish in the cache key between whether to store a count or not.
    44* For the unit tests, it would be better to have three distinct tests (only one assertion per test):
    5     * Run the same query twice, once with `$fields` set to `all`, the other with `$fields` set to `ids`.
    6     * Another one similar to the above, but with `$count` set to `true` in both queries.
    7     * Run the same query twice (with the same `$fields` value!), but one time with the `$count` argument as true.
     5    * Run the same query twice, once with `$fields` set to `all`, the other with `$fields` set to `ids`. `$wpdb->num_queries` should match.
     6    * Another one similar to the above, but with `$count` set to `true` in both queries. `$wpdb->num_queries` should match.
     7    * Run the same query twice (with the same `$fields` value!), but one time with the `$count` argument as true. `$wpdb->num_queries` should differ.