Require theme files without assuming the theme is installed
This commit is contained in:
parent
2c8573b0e2
commit
c159bbf546
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once get_template_directory() . '/inc/wpcom-colors-utils.php';
|
||||
// We can't assume that the theme is activated when this is called, so we can't rely on get_template_directory().
|
||||
require_once get_theme_root() . '/pub/seedlet/inc/wpcom-colors-utils.php';
|
||||
|
||||
seedlet_define_color_annotations(
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue