Make WordPress Core

Opened 3 years ago

Last modified 5 months ago

#37190 new defect (bug)

Split out function declarations and code executions.

Reported by: stephenharris Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:
PR Number:


Quite a few php files in the root directory contain function definitions and code executions. This makes it impossible to unit-test those functions. Should we move those function definitions to includes/<file-name>.php and then include them at the top of the root file?

Change History (0)

Note: See TracTickets for help on using tickets.