Commit 0561e77
committed
Docs: Correct swapped variable names and comments in
The variables `$mm` and `$md` had their `substr()` positions and inline comments swapped — `$mm` was extracting the day digits (position 8) while `$md` was extracting the month digits (position 5), contrary to what the comments indicated.
The output was accidentally correct because the two mistakes cancelled each other out in the `mktime()` call, but the misleading naming posed a future maintenance risk.
This commit corrects the `substr()` positions and `mktime()` argument order so that variable names, comments, and logic are all consistent.
Follow-up to [8598], [28918].
Props saratheonline, westonruter.
Fixes #65046.
git-svn-id: https://develop.svn.wordpress.org/trunk@62421 602fd350-edb4-49c9-b593-d223f7449a82get_weekstartend().1 parent 01debdf commit 0561e77
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
0 commit comments