rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.

Home Page:https://wordpress.org/plugins/login-with-google/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable Settings if Constants and Whitelisted domain are defined in wp-config file.

pooja-muchandikar opened this issue · comments

If we have constants and whitelisted domains defined in wp-config.php file then on adding whitelisted domain from field is not getting saved.

To avoid confusion we have to disable the fields from settings page if constants and whitelisted domains are defined in wp-config.php file. note the data defined in wp-config.php file needs to be pre-filled and disabled

If constants are not defined then show blank fields for users to add data in the fields.

@pooja-muchandikar Can you please test and close this issue as it has been addressed already?

Have cross-checked the issue and following scenarios works fine.

  • If constants are defined in wp-config.php file then settings page fields appear disabled
  • If constants are not defined in wp-config.php file then settings page fields appear enabled and can update domains and save successfully.

Closing this issue.