Commit 450524a
committed
Posts, Post Types: Avoid an extra database query in
Follow-up to [21559].
Props bor0, akeda, SergeyBiryukov.
Fixes #63850.
git-svn-id: https://develop.svn.wordpress.org/trunk@60654 602fd350-edb4-49c9-b593-d223f7449a82WP_Post for a negative post ID.1 parent ab52706 commit 450524a
File tree
2 files changed
+11
-1
lines changed- src/wp-includes
- tests/phpunit/tests/post
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
0 commit comments