Commit a8b3395
committed
Docs: Indicate that
A string is supported by virtue of `wp_parse_args()` being used on the supplied arguments. While a string is not currently passed to `get_posts()` in core, a significant number of plugins are doing so. So in addition to documenting actual ecosystem usage, this also adds a test to ensure that supplying a query string continues to be supported in the future.
Developed in WordPress#11179
Follow-up to r11528.
Props rodrigosprimo, westonruter, shailu25, mukesh27.
See #64224, WordPress#10047.
Fixes #64813.
git-svn-id: https://develop.svn.wordpress.org/trunk@62041 602fd350-edb4-49c9-b593-d223f7449a82get_posts() can take a query string in addition to an array of query vars.1 parent c0725b9 commit a8b3395
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
2602 | | - | |
2603 | | - | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
2604 | 2605 | | |
2605 | 2606 | | |
2606 | 2607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
166 | 179 | | |
0 commit comments