Re-organize theme configuration and setup
functions.php should not contain any Roots specific code. It's just used to require files and bootstrap Roots. lib/init.php now handles initial theme setup and defines helper constants which did not belong in lib/config.php. config.php should be limited to strictly configuration settings.
This commit is contained in:
@@ -15,7 +15,5 @@ Roots is a starting WordPress theme made for developers that’s based on [HTML5
|
||||
|
||||
## Development
|
||||
|
||||
* [Contributing to Roots](/retlehs/roots/blob/master/CONTRIBUTING.md) — Guidelines on how to
|
||||
contribute effectively.
|
||||
* [Extending and customizing Roots](extend.md) — Going further with
|
||||
Roots.
|
||||
* [Contributing to Roots](/retlehs/roots/blob/master/CONTRIBUTING.md) — Guidelines on how to contribute effectively.
|
||||
* [Extending and customizing Roots](extend.md) — Going further with Roots.
|
||||
|
||||
@@ -51,6 +51,10 @@ This file contains HTML5 Boilerplate's `.htaccess` which is automatically added
|
||||
|
||||
This file handles the clean URL rewrites and HTML5 Boilerplate `.htaccess`. [About the rewrites](rewrites.md).
|
||||
|
||||
### init.php
|
||||
|
||||
This file runs the initial theme setup and defines helper constants for later use
|
||||
|
||||
### metaboxes.php
|
||||
|
||||
This file is a placeholder for you to put in custom metaboxes. We recommend the use of [Custom Metaboxes and Fields for WordPress](https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress).
|
||||
|
||||
Reference in New Issue
Block a user