浏览代码

added a __DIR__ to the require'

Ben Dwyer 4 年之前
父节点
当前提交
73c412fb52
共有 2 个文件被更改,包括 11 次插入9 次删除
  1. 10 8
      seedlet/inc/wpcom-colors.php
  2. 1 1
      spearhead/inc/wpcom-colors.php

+ 10 - 8
seedlet/inc/wpcom-colors.php

@@ -1,11 +1,13 @@
 <?php
 
-require_once 'wpcom-colors-utils.php';
+require_once __DIR__ . 'wpcom-colors-utils.php';
 
-seedlet_define_color_annotations( [
-	'background' => '#FFFFFF',
-	'foreground' => '#444444',
-	'primary' => '#000000',
-	'secondary' => '#3C8067',
-	'tertiary' => '#FAFBF6',
- ] );
+seedlet_define_color_annotations(
+	array(
+		'background' => '#FFFFFF',
+		'foreground' => '#444444',
+		'primary'    => '#000000',
+		'secondary'  => '#3C8067',
+		'tertiary'   => '#FAFBF6',
+	)
+);

+ 1 - 1
spearhead/inc/wpcom-colors.php

@@ -1,6 +1,6 @@
 <?php
 
-require_once 'wpcom-colors-utils.php';
+require_once __DIR__ . 'wpcom-colors-utils.php';
 
 seedlet_define_color_annotations(
 	array(