Commit 7c6ea91
committed
Code Quality: Document
In addition to `wp_die()` taking a `string|WP_Error` message, there are also ajax handlers that pass `-1`, `0`, `1`, and `time()`. Refining this type for the `$message` param exposed an erroneous `printf()` being passed into `wp_die()` when `sprintf()` was intended.
Developed in WordPress#12488.
Follow-up to r62177, r34292.
See #64898.
git-svn-id: https://develop.svn.wordpress.org/trunk@62703 602fd350-edb4-49c9-b593-d223f7449a82int as valid message type for wp_die() and fix erroneous printf() arg.1 parent 0113999 commit 7c6ea91
2 files changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3775 | 3775 | | |
3776 | 3776 | | |
3777 | 3777 | | |
3778 | | - | |
3779 | | - | |
3780 | | - | |
3781 | | - | |
3782 | | - | |
3783 | | - | |
3784 | | - | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
3785 | 3787 | | |
3786 | 3788 | | |
3787 | 3789 | | |
| |||
3801 | 3803 | | |
3802 | 3804 | | |
3803 | 3805 | | |
3804 | | - | |
| 3806 | + | |
3805 | 3807 | | |
3806 | 3808 | | |
3807 | 3809 | | |
| |||
0 commit comments