| @@ -6,9 +6,8 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\Admin; |
| 8 | 8 | use Timetics\Utils\Singleton; |
| 9 | 9 | |
| 10 | -use function Timetics\timetics; | |
| 11 | 10 | |
| 12 | 11 | class Hooks { |
| 13 | 12 | use Singleton; |
| 14 | 13 | |
| @@ -137,9 +136,9 @@ | ||
| 137 | 136 | |
| 138 | 137 | update_option( 'timetics_onboard_setup', true ); |
| 139 | 138 | update_option( 'timetics_onboard_settings', false ); |
| 140 | 139 | |
| 141 | - exit( wp_redirect( admin_url('admin.php?page=timetics#/onboard') ) ); | |
| 140 | + exit( esc_url( wp_redirect( admin_url('admin.php?page=timetics#/onboard') ) ) ); | |
| 142 | 141 | } |
| 143 | 142 | |
| 144 | 143 | /** |
| 145 | 144 | * Update site admin roles whne new site created |
| @@ -225,11 +224,13 @@ | ||
| 225 | 224 | * Set default settings |
| 226 | 225 | * |
| 227 | 226 | * @param array $settings [$settings description] |
| 228 | 227 | * |
| 229 | - * @return array | |
| 228 | + * @return mixed | |
| 230 | 229 | */ |
| 231 | 230 | public function set_email_default_content( $settings ) { |
| 231 | + | |
| 232 | + | |
| 232 | 233 | $admin_email = get_option( 'admin_email' ); |
| 233 | 234 | |
| 234 | 235 | $defaults = [ |
| 235 | 236 | |