| @@ -33,8 +33,10 @@ | ||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Sets the options on first install for showing the installation notice and disabling of the settings pages. |
| 37 | + * | |
| 38 | + * @return void | |
| 37 | 39 | */ |
| 38 | 40 | public function set_first_install_options() { |
| 39 | 41 | $options = get_option( 'wpseo' ); |
| 40 | 42 | |
| @@ -39,8 +41,9 @@ | ||
| 39 | 41 | $options = get_option( 'wpseo' ); |
| 40 | 42 | |
| 41 | 43 | $options['show_onboarding_notice'] = true; |
| 42 | 44 | $options['first_activated_on'] = time(); |
| 45 | + $options['first_activated_by'] = get_current_user_id(); | |
| 43 | 46 | |
| 44 | 47 | update_option( 'wpseo', $options ); |
| 45 | 48 | } |
| 46 | 49 | } |