Skip to content
Snippets Groups Projects
Commit 8ea7f6ea authored by Marcin Kolanko's avatar Marcin Kolanko
Browse files

refactor: replace option key

parent 2edeb766
No related branches found
No related tags found
1 merge request!12Bugfix/wordpress review
Pipeline #509543 canceled with stages
in 16 seconds
......@@ -135,7 +135,7 @@ final class PluginBootstrap {
private function add_activation_hook_for_save_activation_date() {
add_action( 'activated_plugin', static function ( $plugin_file, $network_wide = false ) {
if ( ! $network_wide ) {
$option_name = 'plugin_activation_' . $plugin_file;
$option_name = 'activation_plugin_' . $plugin_file;
$activation_date = get_option( $option_name, '' );
if ( '' === $activation_date ) {
$activation_date = current_time( 'mysql' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment