WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38579, comment 3


Ignore:
Timestamp:
10/31/2016 12:28:00 AM (4 years ago)
Author:
jnylen0
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38579, comment 3

    initial v1  
    1 I'm mainly trying to improve consistency across different arguments, and continuing with similar tasks as #38553.  You can already query by post IDs for example, and querying by slug seems likely to be even more useful than that.
     1I'm mainly trying to improve consistency across different arguments, and continuing with similar tasks as #38553.  You can already ask for multiple post IDs for example, and asking for multiple slugs seems likely to be even more useful than that.
    22
    33When querying by a single slug, this changes the generated SQL from `WHERE name = '...'` to `WHERE name IN ('...')`.  This didn't seem like a problem to me, and I don't understand why removing `name` would be a problem either given that there is still a way to do the same thing.