Plugin Directory

Changeset 2694411


Ignore:
Timestamp:
03/15/2022 06:03:34 PM (4 years ago)
Author:
dave123
Message:

version 1.2.2

Location:
nft-login
Files:
3 edited
24 copied

Legend:

Unmodified
Added
Removed
  • nft-login/tags/1.2.2/README.txt

    r2694361 r2694411  
    55Requires at least: 5.0
    66Tested up to: 5.9
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979= 1.2.1 =
    8080Bug fix missing function
     81
     82= 1.2.2 =
     83Php 8 bug fix
  • nft-login/tags/1.2.2/nft-login.php

    r2694361 r2694411  
    1515 * Plugin URI:        https://davehagler.github.io/nftlogin/
    1616 * Description:       Login to Wordpress using NFT's
    17  * Version:           1.2.1
     17 * Version:           1.2.2
    1818 * Author:            Dave Hagler
    1919 * Requires at least: 5.0
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'NFT_LOGIN_VERSION', '1.2.1' );
     37define( 'NFT_LOGIN_VERSION', '1.2.2' );
    3838
    3939!defined('NFT_LOGIN_PATH') && define('NFT_LOGIN_PATH', plugin_dir_path( __FILE__ ));
  • nft-login/tags/1.2.2/public/class-nft-login-public.php

    r2689744 r2694411  
    115115    public function authenticate( $user, $username, $password) {
    116116
    117         $isAdministrator = in_array('administrator', $user->roles);
     117        if (isset($user->roles)) {
     118            $isAdministrator = in_array('administrator', $user->roles);
     119        }
    118120        $isEmptyAddress = empty($_POST['nftlogin_address']) || !empty($_POST['nftlogin_address']) && trim($_POST['nftlogin_address']) == '';
    119121        $isLoginError = $user instanceof WP_Error;
  • nft-login/trunk/README.txt

    r2694361 r2694411  
    55Requires at least: 5.0
    66Tested up to: 5.9
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979= 1.2.1 =
    8080Bug fix missing function
     81
     82= 1.2.2 =
     83Php 8 bug fix
  • nft-login/trunk/nft-login.php

    r2694361 r2694411  
    1515 * Plugin URI:        https://davehagler.github.io/nftlogin/
    1616 * Description:       Login to Wordpress using NFT's
    17  * Version:           1.2.1
     17 * Version:           1.2.2
    1818 * Author:            Dave Hagler
    1919 * Requires at least: 5.0
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'NFT_LOGIN_VERSION', '1.2.1' );
     37define( 'NFT_LOGIN_VERSION', '1.2.2' );
    3838
    3939!defined('NFT_LOGIN_PATH') && define('NFT_LOGIN_PATH', plugin_dir_path( __FILE__ ));
  • nft-login/trunk/public/class-nft-login-public.php

    r2689744 r2694411  
    115115    public function authenticate( $user, $username, $password) {
    116116
    117         $isAdministrator = in_array('administrator', $user->roles);
     117        if (isset($user->roles)) {
     118            $isAdministrator = in_array('administrator', $user->roles);
     119        }
    118120        $isEmptyAddress = empty($_POST['nftlogin_address']) || !empty($_POST['nftlogin_address']) && trim($_POST['nftlogin_address']) == '';
    119121        $isLoginError = $user instanceof WP_Error;
Note: See TracChangeset for help on using the changeset viewer.