Skip to content

Commit

Permalink
Prevent Limit Login nags after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
edjeavons committed Jun 11, 2023
1 parent 136b678 commit 228bc40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Commands/CreateSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function __invoke( array $args, array $assoc_args ) {
WP_CLI::line( 'Network admin: ' . $this->site_url . '/wp/wp-admin/network' );
WP_CLI::line();
WP_CLI::line( 'Website URL: ' . $this->site_url );
WP_CLI::line( 'Website admin: ' . $this->site_url . '/wp/wp-admin' );
WP_CLI::line( 'Website admin: ' . $this->site_url . '/wp/wp-login.php' );
WP_CLI::line();
WP_CLI::line( 'Username: ' . $this->site_username );
WP_CLI::line( 'Password: ' . $this->site_password );
Expand All @@ -151,7 +151,7 @@ public function __invoke( array $args, array $assoc_args ) {
WP_CLI::success( 'Your website is ready.' );
WP_CLI::line();
WP_CLI::line( 'URL: ' . $this->site_url );
WP_CLI::line( 'Admin: ' . $this->site_url . '/wp/wp-admin' );
WP_CLI::line( 'Admin: ' . $this->site_url . '/wp/wp-login.php' );
WP_CLI::line();
WP_CLI::line( 'Username: ' . $this->site_username );
WP_CLI::line( 'Password: ' . $this->site_password );
Expand Down Expand Up @@ -562,6 +562,8 @@ private function install_plugins() {
Helpers::wp_add_option( 'limit_login_show_warning_badge', '0', true, $this->wp_directory );
Helpers::wp_add_option( 'limit_login_hide_dashboard_widget', '1', true, $this->wp_directory );
Helpers::wp_add_option( 'limit_login_show_top_level_menu_item', '0', true, $this->wp_directory );
Helpers::wp_add_option( 'limit_login_onboarding_popup_shown', '1', true, $this->wp_directory );
Helpers::wp_add_option( 'limit_login_auto_update_choice', '0', true, $this->wp_directory );
Helpers::wp_command( 'transient delete llar_welcome_redirect', $this->wp_directory );

// Redirection
Expand Down

0 comments on commit 228bc40

Please sign in to comment.