Commit c6cfbe9
committed
Code Modernization: Avoid NAN coercion/cast deprecation warnings.
Coercing `INF` or `NAN` to a string or casting to int is deprecated in PHP 8.5+.
This change addresses two occurrences in core where this was happening.
Props swissspidy.
Fixes #64047. See #63061.
git-svn-id: https://develop.svn.wordpress.org/trunk@60811 602fd350-edb4-49c9-b593-d223f7449a821 parent 6db003c commit c6cfbe9
File tree
2 files changed
+1
-2
lines changed- src/wp-includes
- tests/phpunit/tests/option
2 files changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
3374 | | - | |
| 3374 | + | |
3375 | 3375 | | |
3376 | 3376 | | |
3377 | 3377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
0 commit comments