Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56975, comment 80


Ignore:
Timestamp:
01/22/2023 12:24:16 PM (2 years ago)
Author:
oandregal
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56975, comment 80

    initial v1  
    11> A static variable doesn't persist between runs. You don't need an extra parameter to clear it.
    22
    3 What if the variable is initialized before a "change of theme" such as the `switch_theme` or `start_previewing_theme` hook? An easy way to see how it fails is by removing my last commit or removing and observing the dozens of PHP unit tests failures.
     3What if the variable is initialized before a "change of theme" such as the `switch_theme` or `start_previewing_theme` hook? An easy way to see how it fails is by removing the last commit or the parameter in the PR and observing the dozens of PHP unit tests failures.