Commit f47fedd
committed
General: Improve resilience of
This obtains the global post via `get_queried_object()` when `is_singular()`.
Developed in #10401
Props westonruter, johnjamesjacoby, Presskopp, abcd95, dilipbheda, sabernhardt, awetz583, indirabiswas27.
Fixes #63263.
git-svn-id: https://develop.svn.wordpress.org/trunk@61056 602fd350-edb4-49c9-b593-d223f7449a82feed_links_extra() when global $post is not set.1 parent b63c6d2 commit f47fedd
File tree
2 files changed
+21
-5
lines changed- src/wp-includes
- tests/phpunit/tests/general
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3326 | 3326 | | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
3332 | 3332 | | |
3333 | 3333 | | |
3334 | 3334 | | |
| |||
3348 | 3348 | | |
3349 | 3349 | | |
3350 | 3350 | | |
3351 | | - | |
| 3351 | + | |
3352 | 3352 | | |
3353 | 3353 | | |
3354 | 3354 | | |
3355 | 3355 | | |
3356 | | - | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
3357 | 3362 | | |
3358 | 3363 | | |
3359 | 3364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
637 | 648 | | |
0 commit comments