[wp-trac] [WordPress Trac] #37190: Split out function declarations and code executions.

WordPress Trac noreply at wordpress.org
Sun Jun 26 14:59:18 UTC 2016


#37190: Split out function declarations and code executions.
---------------------------+-----------------------------
 Reporter:  stephenharris  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 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?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37190>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list