Repository navigation
Commit fdbd29e
committed
Code Modernization: Use
This aims to make the code more readable and consistent, as the function is already used extensively in core files.
WordPress core includes a polyfill for `str_starts_with()` on PHP < 8.0 as of WordPress 5.9.
Follow-up to [55703], [55959].
Props spacedmonkey.
Fixes #58012.
git-svn-id: https://develop.svn.wordpress.org/trunk@55987 602fd350-edb4-49c9-b593-d223f7449a82str_starts_with() in WP_Theme_JSON class methods.1 parent fe36455 commit fdbd29e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3495 | 3495 | | |
3496 | 3496 | | |
3497 | 3497 | | |
3498 | | - | |
| 3498 | + | |
3499 | 3499 | | |
3500 | 3500 | | |
3501 | 3501 | | |
| |||
3519 | 3519 | | |
3520 | 3520 | | |
3521 | 3521 | | |
3522 | | - | |
| 3522 | + | |
3523 | 3523 | | |
3524 | 3524 | | |
3525 | 3525 | | |
| |||
0 commit comments