Commit 343fa03
committed
Administration: Avoid PHP type error with
This fixes an issue when a non-integer is returned by `get_the_time( 'U' )` which can occur when a plugin filters `get_the_time`. In this case, the non-relative date is displayed in the Activity dashboard widget.
Developed in #10729
Follow-up to [26690], [26242].
Props sabernhardt, vanhoucke, westonruter.
Fixes #64496.
git-svn-id: https://develop.svn.wordpress.org/trunk@61495 602fd350-edb4-49c9-b593-d223f7449a82gmdate() in wp_dashboard_recent_posts().1 parent 6346429 commit 343fa03
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | | - | |
1018 | | - | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1019 | 1022 | | |
1020 | | - | |
| 1023 | + | |
1021 | 1024 | | |
1022 | 1025 | | |
1023 | | - | |
| 1026 | + | |
1024 | 1027 | | |
1025 | 1028 | | |
1026 | | - | |
| 1029 | + | |
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
| |||
1033 | 1036 | | |
1034 | 1037 | | |
1035 | 1038 | | |
1036 | | - | |
| 1039 | + | |
1037 | 1040 | | |
1038 | 1041 | | |
1039 | 1042 | | |
| |||
0 commit comments