Read SGS_ENCRYPTION_KEY from constant instead of file
-
Is there any issues for reading the value for
SGS_ENCRYPTION_KEY
directly from a constant?My project is under a git repository and I don’t want to pollute the
.gitignore
with entries, for this reason instead of storing the value inwp-content/sgs_encrypt_key.php
it would be more convenient to use a constant inwp-config.php
.So I have modified the code to allow this behavior. Basically I copied the generated value from
sgs_encrypt_key.php
and put it in a constant inwp-config.php
define( 'SGS_ENCRYPTION_KEY', '...' );
I known there is a proper way of implementing this, but for now I have hacked the code (here is the diff):
https://gist.github.com/luistar15/6cec794a6241dc00f73671eab5e42bef
- The topic ‘Read SGS_ENCRYPTION_KEY from constant instead of file’ is closed to new replies.