Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
845 stars 342 forks source link

Spearhead: don't use a relative requires #7851

Closed vcanales closed 3 weeks ago

vcanales commented 3 weeks ago

Ran into deployment issues, this fixes the problem.

remote: ***********************************
remote: Syntax Error in: spearhead/inc/wpcom-editor-colors.php:
remote: Relative path includes are not allowed. Please fix this relative include before committing the file:
remote:         require_once 'wpcom-colors.php';
remote: 
remote: You can use the __DIR__ or ABSPATH constants for this. For example:
remote: 
remote: require( __DIR__ . '/myfile.php' );
remote: or
remote: require( ABSPATH . 'wp-content/mu-plugins/myfile.php' );
remote: ***********************************