Commit 653e935
committed
Tests: Fix unit test failure in PHP 8.5 due using null as an array offset.
This adds `is_string()` type checks for the `$post_status` arg passed to both `get_post_status_object()` and `is_post_status_viewable()`. This was triggered by `Tests_Post_IsPostStatusViewable::test_built_in_and_unregistered_status_types()` for the `null` data set.
Follow-up to [61170].
See #63167, #63061.
git-svn-id: https://develop.svn.wordpress.org/trunk@61171 602fd350-edb4-49c9-b593-d223f7449a821 parent 4db780e commit 653e935
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
| 1515 | + | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
| |||
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
2458 | 2462 | | |
2459 | 2463 | | |
2460 | 2464 | | |
| |||
0 commit comments