Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dead / unreachable code in
core/calendar
block renderer. (#1…
…4546) ## Description The `core/calendar` block registration file contains variable assignments after a `return` statement (hence dead code). After removing this code, I discovered that the variables in question (`$previous_monthnum` and `$previous_year`) are never used anyway (not in this function, not in `get_calendar` and never in the entire codebase for that matter). This PR removes dead code and unused variables to prevent any future ambiguities or bugs. ## How has this been tested? Tests pass, not sure how to test server side rendering well This change seems safe / harmless, however ## Types of changes Refactor, non-breaking
- Loading branch information