Skip to content

Commit

Permalink
Added configured constants from vvv.json to wp-constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
EHLOVader committed Dec 24, 2014
1 parent 858eed9 commit 4223c35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/_wp-constants
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ define( 'JETPACK_DEV_DEBUG', true );

/*Caching*/
define( 'WP_CACHE_KEY_SALT', '<%= site.id %>' );

<% if (wordpress.constants) {
%>/* Constants */
<% _.each(wordpress.constants, function(value, key, field){
if(!_.contains([true,false],value)){
value = "'" + value + "'";
}
%>define( '<%= key %>', <%= value %> );
<% })
} %>

0 comments on commit 4223c35

Please sign in to comment.