Plugin Directory

Changeset 2387456


Ignore:
Timestamp:
09/24/2020 06:29:26 AM (6 years ago)
Author:
miled
Message:

Hotfix an issue with oauth2 idps default scopes

Location:
wordpress-social-login/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wordpress-social-login/trunk/includes/admin/wsl.admin.ui.php

    r2386920 r2387456  
    424424
    425425                <ul style="margin-left:25px;">
    426                     <li><?php _wsl_e('WSL is now fully migrated to Hybridauth 3.4', 'wordpress-social-login') ?></li>
     426                    <li><?php _wsl_e('WSL is now fully migrated to Hybridauth 3.5', 'wordpress-social-login') ?></li>
    427427                    <li><?php _wsl_e("Reworked providers Callback URLs and it's a breaking change! See up top notice", 'wordpress-social-login') ?></li>
    428428                    <li><?php _wsl_e('Added serval new providers: Amazon, Discord and Spotify to name a few', 'wordpress-social-login') ?></li>
  • wordpress-social-login/trunk/includes/services/wsl.authentication.php

    r2386920 r2387456  
    949949    }
    950950
    951     $provider_scope = isset( $config["providers"][$provider]["scope"] ) ? $config["providers"][$provider]["scope"] : '' ;
     951    $provider_scope = isset( $config["providers"][$provider]["scope"] ) ? $config["providers"][$provider]["scope"] : null ;
    952952
    953953    // HOOKABLE: allow to overwrite scopes
    954     $config["providers"][$provider]["scope"] = apply_filters( 'wsl_hook_alter_provider_scope', $provider_scope, $provider );
     954    $provider_scope = apply_filters( 'wsl_hook_alter_provider_scope', $provider_scope, $provider );
     955
     956    // XXX: Scope needs to be diffrent than null.
     957    if($provider_scope !== null){
     958        $config["providers"][$provider]["scope"] = $provider_scope;
     959    }
    955960
    956961    // HOOKABLE: allow to overwrite hybridauth config for the selected provider
  • wordpress-social-login/trunk/readme.md

    r2386920 r2387456  
    1 ## [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/) 3.0.3-dev
     1## [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/) 3.0.4-dev
    22
    33**WordPress Social Login** is a free and open source plugin made by the community, for the community.
  • wordpress-social-login/trunk/readme.txt

    r2386931 r2387456  
    44Requires at least: 3.0
    55Tested up to: 5.5
    6 Stable tag: 3.0.3
     6Stable tag: 3.0.4
    77License: MIT License
    88License URI: http://opensource.org/licenses/MIT
     
    3030<strong>Free, unlimited and white-label</strong> <br>
    3131Wordpress Social Login is open-source and completely free. The source code is publicly available on [GitHub](https://github.com/hybridauth/WordPress-Social-Login) for anyone to help and contribute. You are free to use a Wordpress Social Login in commercial projects as long as the copyright header is left intact.
    32 
    33 <strong>Special thanks to:</strong>
    34 
    35 * [Thenbrent](http://profiles.wordpress.org/users/thenbrent/) the talented developer behind the Social Connect plugin.
    36 * [Pat Anvil](http://patanvil.com) for adding Goodreads.
    37 * [Ayrat Belyaev](https://github.com/xbreaker) for adding Mail.ru, Yandex and Odnoklassniki.
    38 * [Social Login plugin](https://wordpress.org/plugins/oa-social-login/) for many borrowed functions.
    39 * [Query Monitor plugin](https://wordpress.org/plugins/query-monitor/) - A must have for Wordpress plugins developers.
    4032
    4133Big thanks to everyone who have contributed to WordPress Social Login by submitting Patches, Ideas, Reviews and by Helping in the support forum.
     
    7567
    7668== Changelog ==
     69
     70= 3.0.4 =
     71
     72* Hotfix an issue with default scopes of a certain identity providers.
    7773
    7874= 3.0.3 =
  • wordpress-social-login/trunk/wp-social-login.php

    r2386920 r2387456  
    44Plugin URI: http://miled.github.io/wordpress-social-login/
    55Description: Allow your visitors to comment and login with social networks such as Twitter, Facebook, Google, Yahoo and more.
    6 Version: 3.0.3
     6Version: 3.0.4
    77Author: Miled
    88Author URI: https://github.com/miled
Note: See TracChangeset for help on using the changeset viewer.