Mine own eyes have seen wp-config.php (as well as other sensitive credentials and API keys) checked into public repositories, unfortunately. It would be great if WP supported .env files natively, it’s definitely the proper place for config values. Too bad it’s not an option, it would likely alleviate this concern for many developers.
Elliot indicated he continues to be interested in implementing this feature, but needs to do additional research. His primary concern is license keys ending up accidentally checked into public GitHub repositories, a valid concern.
He also said that once he’d made a decision on whether or not to implement this he’d reply directly on this topic.
Just here for my regular biennial bump!
This topic was started in 2014 and I’ve been following it since at least 2016. Every few years there’s been some noise indicating this was being worked on, but here we are in nearly 2020 and it’s still not resolved.
Like many other developers I regularly deploy updates to development, staging and production environments for numerous sites with ACF Pro installed. Each time I run a database migration (via WP Migrate DB Pro) I have to manually reactivate ACF Pro. I have yet to encounter another premium plugin that behaves similarly.
@elliot, I love ACF and owe you a huge debt of gratitude for the time and effort you’ve saved me over the years! That said, this has been a pain point for a long time. Is there any possibility of this making it onto the roadmap for 2020?
Thanks for pointing this out @ivan-d. I went down a rabbit hole this morning assuming this was an ACF issue, turns out I simply didn’t have revisioned enabled on a Custom Post Type. I wasn’t aware disabling revisions also disables preview functionality, but in hindsight it makes sense. You learn something every day eh!
Just curious, was this added to ACF Pro in the end? The thread is marked as solved, but I can’t find any documentation on it. I’m having the same issue as others, ACF deactivates after a WP Migrate DB Pro migration. Having to manually reactivate it after each migration is a pain, the option to activate ACF via config would be nice.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.