Skip to content

Commit

Permalink
Version 1.1 & fix shortcode fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdclark committed Jul 6, 2021
1 parent 0f5e9b9 commit 7a93107
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion login-with-google.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Login with Google
* Description: Allow users to login/register via Google.
* Version: 1.0.15
* Version: 1.1
* Author: rtCamp
* Author URI: https://rtcamp.com
* Text Domain: login-with-google
Expand Down
23 changes: 14 additions & 9 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: Google login, sign in, sso, oauth, authentication, sign-in, single sign-on
Requires at least: 5.0
Tested up to: 5.7
Requires PHP: 7.3
Stable tag: 1.0.15
Stable tag: 1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -62,6 +62,10 @@ This filter will provide 1 parameter `scopes` in callback, which contains array
* `WP_GOOGLE_LOGIN_USER_REGISTRATION` (boolean) (optional): Set `true` If you want to enable new user registration. By default, user registration defers to `Settings > General Settings > Membership` if constant is not set.
* `WP_GOOGLE_LOGIN_WHITELIST_DOMAINS` (string) (optional): Domain names, if you want to restrict login with your custom domain. By default, it will allow all domains. You can whitelist multiple domains.

= Shortcode =

The plugin makes available the `[google_login]` shortcode with optional attributes: `[google_login button_text="Login with Google" force_display="no" redirect_to="https://example.url/page"]`

= BTW, We're Hiring! =

[Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions](https://rtcamp.com/)
Expand Down Expand Up @@ -116,12 +120,11 @@ Once you're ready to send a pull request, please run through the following check

== Changelog ==

= 1.0.15 =
* Feature: Custom GoogleClient class for OAuth.
* Feature: Shortcode support.
* Code: Rewrite of code.
* Fix: Identification of state value, whether it is relevant to plugin.
* Remove: Google OAuth library from composer.
= 1.1 =
* Feature: Add shortcode `[google_login]` with optional attributes: `[google_login button_text="Login with Google" force_display="no" redirect_to="https://example.url/page"]`.
* Feature: Replace third-party oAuth client with custom GoogleClient class.
* Fix: Identification of state value, whether a given oAuth login is relevant to this plugin.
* Remove: Google oAuth library from composer.

= 1.0.14 =
* Revert Login with GitHub state fix.
Expand All @@ -143,5 +146,7 @@ Once you're ready to send a pull request, please run through the following check

== Upgrade Notice ==

= 1.0.10 =
* Fix issue where JS/CSS were not loding.
* Feature: Add shortcode `[google_login]` with optional attributes: `[google_login button_text="Login with Google" force_display="no" redirect_to="https://example.url/page"]`.
* Feature: Replace third-party oAuth client with custom GoogleClient class.
* Fix: Identification of state value, whether a given oAuth login is relevant to this plugin.
* Remove: Google oAuth library from composer.
2 changes: 1 addition & 1 deletion src/Modules/Shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function init(): void {
*
* @return string
*/
public function callback( array $attrs = [] ): string {
public function callback( $attrs = [] ): string {
$attrs = shortcode_atts(
[
'button_text' => __( 'Login with google', 'login-with-google' ),
Expand Down

0 comments on commit 7a93107

Please sign in to comment.